@@ -145,13 +145,17 @@ export function Sidebar({ avatar, name, email, role, sidebarItems, children }: S
145145 </ div >
146146 </ DropdownMenuLabel >
147147 < DropdownMenuSeparator />
148- < DropdownMenuItem className = "flex items-center gap-2 px-3 py-2 hover:bg-purple-700/10 rounded-md cursor-pointer" >
149- < User className = "size-4 text-purple-400" />
150- < span > Account</ span >
148+ < DropdownMenuItem asChild onSelect = { ( e ) => { e . preventDefault ( ) ; window . location . href = '/admin/account' ; } } className = "flex items-center gap-2 px-3 py-2 hover:bg-purple-700/10 rounded-md cursor-pointer" >
149+ < Link href = "/admin/account" className = "flex items-center w-full" >
150+ < User className = "size-4 text-purple-400" />
151+ < span > Account</ span >
152+ </ Link >
151153 </ DropdownMenuItem >
152- < DropdownMenuItem className = "flex items-center gap-2 px-3 py-2 hover:bg-purple-700/10 rounded-md cursor-pointer" >
153- < Bell className = "size-4 text-purple-400" />
154- < span > Notifications</ span >
154+ < DropdownMenuItem asChild onSelect = { ( e ) => { e . preventDefault ( ) ; window . location . href = '/admin/notifications' ; } } className = "flex items-center gap-2 px-3 py-2 hover:bg-purple-700/10 rounded-md cursor-pointer" >
155+ < Link href = "/admin/notifications" className = "flex items-center w-full" >
156+ < Bell className = "size-4 text-purple-400" />
157+ < span > Notifications</ span >
158+ </ Link >
155159 </ DropdownMenuItem >
156160 < DropdownMenuSeparator />
157161 < DropdownMenuItem onClick = { ( ) => { window . location . href = "/auth/signin" } } className = "flex items-center gap-2 px-3 py-2 hover:bg-red-600/20 text-red-400 rounded-md cursor-pointer" >
@@ -247,13 +251,17 @@ export function Sidebar({ avatar, name, email, role, sidebarItems, children }: S
247251 </ div >
248252 </ DropdownMenuLabel >
249253 < DropdownMenuSeparator />
250- < DropdownMenuItem className = "flex items-center gap-2 px-3 py-2 hover:bg-purple-700/10 rounded-md cursor-pointer" >
251- < User className = "size-4 text-purple-400" />
252- < span > Account</ span >
254+ < DropdownMenuItem asChild onSelect = { ( e ) => { e . preventDefault ( ) ; window . location . href = '/admin/account' ; } } className = "flex items-center gap-2 px-3 py-2 hover:bg-purple-700/10 rounded-md cursor-pointer" >
255+ < Link href = "/admin/account" className = "flex items-center w-full" >
256+ < User className = "size-4 text-purple-400" />
257+ < span > Account</ span >
258+ </ Link >
253259 </ DropdownMenuItem >
254- < DropdownMenuItem className = "flex items-center gap-2 px-3 py-2 hover:bg-purple-700/10 rounded-md cursor-pointer" >
255- < Bell className = "size-4 text-purple-400" />
256- < span > Notifications</ span >
260+ < DropdownMenuItem asChild onSelect = { ( e ) => { e . preventDefault ( ) ; window . location . href = '/admin/notifications' ; } } className = "flex items-center gap-2 px-3 py-2 hover:bg-purple-700/10 rounded-md cursor-pointer" >
261+ < Link href = "/admin/notifications" className = "flex items-center w-full" >
262+ < Bell className = "size-4 text-purple-400" />
263+ < span > Notifications</ span >
264+ </ Link >
257265 </ DropdownMenuItem >
258266 < DropdownMenuSeparator />
259267 < DropdownMenuItem onClick = { ( ) => { window . location . href = "/auth/signin" } } className = "flex items-center gap-2 px-3 py-2 hover:bg-red-600/20 text-red-400 rounded-md cursor-pointer" >
0 commit comments