From 6150d2fe40f136f97f5293eabd196b421b1b02b9 Mon Sep 17 00:00:00 2001 From: Yoonchulchung Date: Thu, 12 Feb 2026 20:38:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A0=9C=EC=95=88=ED=95=98=EA=B8=B0=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=20=ED=81=B4=EB=A6=AD=20=EC=8B=9C=20=EC=9D=B4?= =?UTF-8?q?=EB=8F=99=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Bubbles/ProposalMessage.tsx | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/app/routes/room/components/Bubbles/ProposalMessage.tsx b/app/routes/room/components/Bubbles/ProposalMessage.tsx index 9fab6298..50e0b646 100644 --- a/app/routes/room/components/Bubbles/ProposalMessage.tsx +++ b/app/routes/room/components/Bubbles/ProposalMessage.tsx @@ -20,14 +20,16 @@ type ApplyCardProps = BaseProps & { type Props = ProposalCardProps | ApplyCardProps; -export default function ProposalMessage({ - kind, - createdAt, - avatarSrc, - campaignName, - bodyText, - proposalDirection, -}: Props) { +export default function ProposalMessage(props: Props) { + const { + kind, + createdAt, + avatarSrc, + campaignName, + bodyText, + proposalDirection, + } = props; + const proposalId = kind === "APPLY_CARD" ? (props as ApplyCardProps).applyId : (props as ProposalCardProps).proposalId; const timeText = createdAt ?? ""; const navigate = useNavigate(); @@ -58,7 +60,7 @@ export default function ProposalMessage({