From 6b40eeddfc0f4c439ab13a5b49648574237f1f41 Mon Sep 17 00:00:00 2001 From: MyungJiwoo <1206jiwoo@gmail.com> Date: Mon, 4 Aug 2025 14:05:47 +0900 Subject: [PATCH 1/6] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20[#239]=20Refactor:=20?= =?UTF-8?q?=EC=98=88=EC=95=BD=20=EB=82=B4=EC=97=AD=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=EB=A1=9C=20=EC=9D=B4=EB=8F=99=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EC=98=81=EC=97=AD=EC=9D=84=20=EC=95=8C=EB=A6=BC=20=EC=B9=B4?= =?UTF-8?q?=EB=93=9C=20=EC=98=81=EC=97=AD=20=EC=A0=84=EC=B2=B4=EB=A1=9C=20?= =?UTF-8?q?=ED=99=95=EB=8C=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/NotificationCard.tsx | 41 +++++++++++++------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/packages/design-system/src/components/NotificationCard.tsx b/packages/design-system/src/components/NotificationCard.tsx index 94a401c7..d1e1d15d 100644 --- a/packages/design-system/src/components/NotificationCard.tsx +++ b/packages/design-system/src/components/NotificationCard.tsx @@ -60,6 +60,10 @@ const parseNotificationContent = (content: string): ParsedNotification | null => export default function NotificationCard({ content, onDelete, onClickDetail }: NotificationCardProps) { const parsedNotification = parseNotificationContent(content); + const handleClickStop = (e: React.MouseEvent) => { + e.stopPropagation(); + }; + // parsedNotification 실패시 기본 content를 메시지로 보여줍니다. if (!parsedNotification) { return ( @@ -78,7 +82,13 @@ export default function NotificationCard({ content, onDelete, onClickDetail }: N const { title, date, confirm } = parsedNotification; return ( -
{title}
-- {date.year}년 {date.month}월 {date.day}일 {date.startTime}~{date.endTime} -
-{title}
++ {date.year}년 {date.month}월 {date.day}일 {date.startTime}~{date.endTime} +
Loading...
} +알림이 없습니다.
)} {/* 무한 스크롤 감지용 */} -{title}
{date.year}년 {date.month}월 {date.day}일 {date.startTime}~{date.endTime} diff --git a/packages/design-system/src/components/skeleton/NotificationCardSkeleton.tsx b/packages/design-system/src/components/skeleton/NotificationCardSkeleton.tsx index 3c247ab8..999754c2 100644 --- a/packages/design-system/src/components/skeleton/NotificationCardSkeleton.tsx +++ b/packages/design-system/src/components/skeleton/NotificationCardSkeleton.tsx @@ -1,6 +1,6 @@ export default function NotificationCardSkeleton() { return ( -