From b1ad9b8d1fff8fc0323a671c49ff1dce08d38b59 Mon Sep 17 00:00:00 2001 From: doyi0107 Date: Tue, 10 Dec 2024 11:45:46 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[fix/TK-212]:=EC=95=8C=EB=A6=BC=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=97=90=EC=84=9C=20=EC=95=8C=EB=A6=BC=20?= =?UTF-8?q?=EB=B0=B0=EC=A7=80=20=EB=B9=84=ED=99=9C=EC=84=B1=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/src/title.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/title.tsx b/packages/ui/src/title.tsx index e92b49dc..45434ef8 100644 --- a/packages/ui/src/title.tsx +++ b/packages/ui/src/title.tsx @@ -30,6 +30,13 @@ export const Title = ({ refreshInterval: 1000, }); + const notificationIcon = + pathname === '/notification' + ? NoMsg // 알림 페이지면 NoMsg로 고정 + : hasNotification + ? isMsg + : NoMsg; // 다른 페이지면 기존 로직 유지 + useEffect(() => { if ( isMsgData && @@ -80,7 +87,7 @@ export const Title = ({

{label}

알림 Date: Tue, 10 Dec 2024 11:50:56 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[fix/TK-212]:=EC=97=AC=ED=96=89=20=ED=8E=B8?= =?UTF-8?q?=EC=A7=91=20=EC=99=84=EB=A3=8C=20=EC=8B=9C=20=EC=97=AC=ED=96=89?= =?UTF-8?q?=20=EB=A6=AC=EC=8B=9C=ED=8A=B8=20=EC=A6=89=EC=8B=9C=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mobile/app/travel/[id]/form/page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/mobile/app/travel/[id]/form/page.tsx b/apps/mobile/app/travel/[id]/form/page.tsx index a556d724..31157343 100644 --- a/apps/mobile/app/travel/[id]/form/page.tsx +++ b/apps/mobile/app/travel/[id]/form/page.tsx @@ -13,6 +13,7 @@ import { motion } from 'framer-motion'; import styles from './page.module.css'; import useSWR from 'swr'; import { TravelFormData } from '@withbee/types'; +import { mutate } from 'swr'; function TravelFormContent() { const [editedTravel, setEditedTravel] = useState(null); @@ -43,6 +44,7 @@ function TravelFormContent() { ); if (response) { + mutate((key: string) => key.startsWith('travelList')); showToast.success({ message: '여행이 편집이 완료되었습니다.' }); router.push(`/travel/${params.id}`); } else {