Skip to content
Merged
Changes from 1 commit
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
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