Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 9d50dda

Browse files
committed
display the notifications icon for non-authenticated users
1 parent 269f50b commit 9d50dda

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

src/components/Navbar.tsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,22 @@ const Navbar = () => {
6161
</IconButton>
6262
</Link>
6363

64-
{user && (
65-
<Link href="/notifications" passHref>
66-
<IconButton
67-
aria-label={translate('notifications')}
68-
color="inherit"
69-
edge="end"
64+
<Link href="/notifications" passHref>
65+
<IconButton
66+
aria-label={translate('notifications')}
67+
color="inherit"
68+
edge="end"
69+
>
70+
<Badge
71+
variant="dot"
72+
overlap="circle"
73+
color="secondary"
74+
invisible={!user?.notifications}
7075
>
71-
<Badge
72-
variant="dot"
73-
overlap="circle"
74-
color="secondary"
75-
invisible={!user.notifications}
76-
>
77-
<Notifications />
78-
</Badge>
79-
</IconButton>
80-
</Link>
81-
)}
76+
<Notifications />
77+
</Badge>
78+
</IconButton>
79+
</Link>
8280

8381
<IconButton
8482
edge="end"

0 commit comments

Comments
 (0)