From 00716844c38f524a9c4fc8db7719f35bccc6dde5 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Wed, 7 Oct 2026 16:25:01 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=A2=8B=EC=95=84=EC=9A=94=20=ED=95=98?= =?UTF-8?q?=ED=8A=B8=C2=B7=EC=95=8C=EB=A6=BC=EC=9D=84=20=EC=B9=B4=EB=93=9C?= =?UTF-8?q?=20=EC=95=88=EC=9D=B4=20=EC=95=84=EB=8B=88=EB=9D=BC=20=ED=99=94?= =?UTF-8?q?=EB=A9=B4=20=EC=9C=84=EC=97=90=20=EB=9D=84=EC=9B=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/Post.tsx | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/frontend/src/b/Post.tsx b/frontend/src/b/Post.tsx index fe61ea9..fb18143 100644 --- a/frontend/src/b/Post.tsx +++ b/frontend/src/b/Post.tsx @@ -1,4 +1,5 @@ import { useEffect, useRef, useState, type CSSProperties, type MouseEvent, type ReactNode } from 'react' +import { createPortal } from 'react-dom' import { PostType, SlotTone, type GakSlide, type HoursSlide, type PlanSlide, type PostData, type ResFeed, type RowsSlide, type SunsetSlide, type WeekSlide } from '../api/client/types.gen' import { cx } from '../lib/utils' import { cardBg, clockShort, fall } from './lib' @@ -392,8 +393,9 @@ function FullCard({ post }: PostProps) { {n > 1 && } - {pop > 0 && ( - , + document.body, + )} + {likeFailed > 0 && createPortal( +

+ {liked ? '좋아요를 취소하지 못했어요' : '좋아요를 반영하지 못했어요'}. 다시 해 주세요. +

, + document.body, )} -

- {likeFailed > 0 && {liked ? '좋아요를 취소하지 못했어요' : '좋아요를 반영하지 못했어요'}. 다시 해 주세요.} -