1
1
import { NavBar , Button , Menu , Avatar } from '@/ui'
2
2
import { signIn , signOut , useSession } from 'next-auth/client'
3
- import { Logo , DonateModal , GlobalLoadingIndicator } from '@/components'
3
+ import { Logo , DonateModal , GlobalLoadingIndicator , A } from '@/components'
4
4
import Link from 'next/link'
5
5
import { useRouter } from 'next/router'
6
6
import { User } from 'src/pages/members'
@@ -24,11 +24,6 @@ const navbarItems = [
24
24
value : 'our-chatroom' ,
25
25
href : '/chat' ,
26
26
} ,
27
- {
28
- title : 'Notifications' ,
29
- value : 'notifications' ,
30
- href : '/notifications' ,
31
- } ,
32
27
]
33
28
34
29
export default function AppNavBar ( ) {
@@ -97,6 +92,27 @@ export default function AppNavBar() {
97
92
Donate
98
93
</ Button >
99
94
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
+
100
116
< Menu
101
117
trigger = {
102
118
< Avatar
0 commit comments