Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f9f258

Browse files
committed
Show bell icon for notifications
1 parent 4180825 commit 5f9f258

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

src/components/AppNavBar.tsx

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NavBar, Button, Menu, Avatar } from '@/ui'
22
import { signIn, signOut, useSession } from 'next-auth/client'
3-
import { Logo, DonateModal, GlobalLoadingIndicator } from '@/components'
3+
import { Logo, DonateModal, GlobalLoadingIndicator, A } from '@/components'
44
import Link from 'next/link'
55
import { useRouter } from 'next/router'
66
import { User } from 'src/pages/members'
@@ -24,11 +24,6 @@ const navbarItems = [
2424
value: 'our-chatroom',
2525
href: '/chat',
2626
},
27-
{
28-
title: 'Notifications',
29-
value: 'notifications',
30-
href: '/notifications',
31-
},
3227
]
3328

3429
export default function AppNavBar() {
@@ -97,6 +92,27 @@ export default function AppNavBar() {
9792
Donate
9893
</Button>
9994

95+
<A href="/notifications">
96+
<button className="bg-white p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
97+
<span className="sr-only">View notifications</span>
98+
<svg
99+
className="h-6 w-6"
100+
xmlns="http://www.w3.org/2000/svg"
101+
fill="none"
102+
viewBox="0 0 24 24"
103+
stroke="currentColor"
104+
aria-hidden="true"
105+
>
106+
<path
107+
strokeLinecap="round"
108+
strokeLinejoin="round"
109+
strokeWidth="2"
110+
d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"
111+
/>
112+
</svg>
113+
</button>
114+
</A>
115+
100116
<Menu
101117
trigger={
102118
<Avatar

0 commit comments

Comments
 (0)