Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/mobile/app/travel/[id]/form/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<TravelFormData | null>(null);
Expand Down Expand Up @@ -43,6 +44,7 @@ function TravelFormContent() {
);

if (response) {
mutate((key: string) => key.startsWith('travelList'));
showToast.success({ message: '여행이 편집이 완료되었습니다.' });
router.push(`/travel/${params.id}`);
} else {
Expand Down
9 changes: 8 additions & 1 deletion packages/ui/src/title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ export const Title = ({
refreshInterval: 1000,
});

const notificationIcon =
pathname === '/notification'
? NoMsg // 알림 페이지면 NoMsg로 고정
: hasNotification
? isMsg
: NoMsg; // 다른 페이지면 기존 로직 유지

useEffect(() => {
if (
isMsgData &&
Expand Down Expand Up @@ -80,7 +87,7 @@ export const Title = ({
<h1 className={styles.label}>{label}</h1>
<Link href="/notification">
<Image
src={hasNotification ? isMsg : NoMsg}
src={notificationIcon}
alt="알림"
width={20}
height={20}
Expand Down
Loading