11"use client"
22
33import {
4- BadgeCheck ,
5- Bell ,
6- ChevronsUpDown ,
7- CreditCard ,
8- LogOut ,
4+ Bell as BellIcon ,
5+ CreditCard as CreditCardIcon ,
6+ LogOut as LogOutIcon ,
7+ MoreVertical as MoreVerticalIcon ,
8+ User as UserCircleIcon ,
99} from "lucide-react"
1010
1111import {
@@ -36,7 +36,7 @@ export function NavUser({
3636 }
3737} ) {
3838 const { isMobile } = useSidebar ( )
39- const { signOut } = useAuth ( )
39+ const { signOut } = useAuth ( ) ;
4040
4141 return (
4242 < SidebarMenu >
@@ -49,13 +49,15 @@ export function NavUser({
4949 >
5050 < Avatar className = "h-8 w-8 rounded-lg" >
5151 < AvatarImage src = { user . avatar } alt = { user . name } />
52- < AvatarFallback className = "rounded-lg" > { user . name ? user . name . substring ( 0 , 2 ) . toUpperCase ( ) : 'U' } </ AvatarFallback >
52+ < AvatarFallback className = "rounded-lg" > CN </ AvatarFallback >
5353 </ Avatar >
5454 < div className = "grid flex-1 text-left text-sm leading-tight" >
5555 < span className = "truncate font-semibold" > { user . name } </ span >
56- < span className = "truncate text-xs" > { user . email } </ span >
56+ < span className = "truncate text-xs text-muted-foreground" >
57+ { user . email }
58+ </ span >
5759 </ div >
58- < ChevronsUpDown className = "ml-auto size-4" />
60+ < MoreVerticalIcon className = "ml-auto size-4" />
5961 </ SidebarMenuButton >
6062 </ DropdownMenuTrigger >
6163 < DropdownMenuContent
@@ -68,11 +70,13 @@ export function NavUser({
6870 < div className = "flex items-center gap-2 px-1 py-1.5 text-left text-sm" >
6971 < Avatar className = "h-8 w-8 rounded-lg" >
7072 < AvatarImage src = { user . avatar } alt = { user . name } />
71- < AvatarFallback className = "rounded-lg" > { user . name ? user . name . substring ( 0 , 2 ) . toUpperCase ( ) : 'U' } </ AvatarFallback >
73+ < AvatarFallback className = "rounded-lg" > CN </ AvatarFallback >
7274 </ Avatar >
7375 < div className = "grid flex-1 text-left text-sm leading-tight" >
7476 < span className = "truncate font-semibold" > { user . name } </ span >
75- < span className = "truncate text-xs" > { user . email } </ span >
77+ < span className = "truncate text-xs text-muted-foreground" >
78+ { user . email }
79+ </ span >
7680 </ div >
7781 </ div >
7882 </ DropdownMenuLabel >
@@ -82,24 +86,24 @@ export function NavUser({
8286 window . history . pushState ( { } , '' , '/settings' ) ;
8387 window . dispatchEvent ( new Event ( 'pushstate' ) ) ;
8488 } } >
85- < BadgeCheck className = "mr-2 h-4 w-4" />
86- Account
89+ < UserCircleIcon className = "mr-2 h-4 w-4" />
90+ Settings
8791 </ DropdownMenuItem >
8892 < DropdownMenuItem onClick = { ( ) => {
8993 window . history . pushState ( { } , '' , '/organization' ) ;
9094 window . dispatchEvent ( new Event ( 'pushstate' ) ) ;
9195 } } >
92- < CreditCard className = "mr-2 h-4 w-4" />
96+ < CreditCardIcon className = "mr-2 h-4 w-4" />
9397 Organization
9498 </ DropdownMenuItem >
9599 < DropdownMenuItem >
96- < Bell className = "mr-2 h-4 w-4" />
100+ < BellIcon className = "mr-2 h-4 w-4" />
97101 Notifications
98102 </ DropdownMenuItem >
99103 </ DropdownMenuGroup >
100104 < DropdownMenuSeparator />
101- < DropdownMenuItem onClick = { ( ) => signOut ( ) } >
102- < LogOut className = "mr-2 h-4 w-4" />
105+ < DropdownMenuItem onClick = { signOut } >
106+ < LogOutIcon className = "mr-2 h-4 w-4" />
103107 Log out
104108 </ DropdownMenuItem >
105109 </ DropdownMenuContent >
0 commit comments