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 { 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}