@@ -3,21 +3,22 @@ import { useRouter } from 'next/router'
33import  {  useCallback ,  useMemo  }  from  'react' 
44import  {  toast  }  from  'react-hot-toast' 
55import  Search  from  '~/components/search/Search' 
6- import  {  Avatar ,  AvatarFallback ,  AvatarImage  }  from  '~/components/ui/Avatar' 
7- import  DropdownMenu ,  { 
6+ import  {  Avatar ,  AvatarFallback ,  AvatarImage  }  from  '~/components/ui/avatar' 
7+ import  { 
8+   DropdownMenu , 
89  DropdownMenuContent , 
910  DropdownMenuItem , 
1011  DropdownMenuLabel , 
1112  DropdownMenuSeparator , 
1213  DropdownMenuTrigger , 
13- }  from  '~/components/ui/DropdownMenu ' 
14+ }  from  '~/components/ui/dropdown-menu ' 
1415import  {  useSignOutMutation  }  from  '~/data/auth/sign-out-mutation' 
1516import  {  useUsersOrganizationsQuery  }  from  '~/data/organizations/users-organizations-query' 
1617import  {  useUser  }  from  '~/lib/auth' 
1718import  {  getAvatarUrl  }  from  '~/lib/avatars' 
1819import  {  useTheme  }  from  '../themes/ThemeContext' 
1920import  ThemeSwitcher  from  '../themes/ThemeSwitcher' 
20- import  {  Button  }  from  '~/components/ui/Button ' 
21+ import  {  Button  }  from  '~/components/ui/button ' 
2122
2223const  Navbar  =  ( )  =>  { 
2324  const  router  =  useRouter ( ) 
@@ -66,11 +67,15 @@ const Navbar = () => {
6667
6768  const  AvatarWrapper  =  ( {  size =  'sm'  } : {  size ?: 'sm'  |  'md'  } )  => 
6869    user ?. user_metadata . avatar_path  ===  undefined  ? ( 
69-       < div  className = "flex items-center justify-center w-6 h-6 text-gray-600 bg-gray-300 border-gray-400 rounded-full border-1 dark:border-slate-400 dark:bg-slate-500 dark:text-white" > 
70+       < div 
71+         className = { `flex items-center justify-center text-gray-600 bg-gray-300 border-gray-400 rounded-full border-1 dark:border-slate-400 dark:bg-slate-500 dark:text-white ${ size  ===  'sm'  ? 'w-6 h-6'  : 'w-10 h-10' }  } 
72+       > 
7073        { displayName [ 0 ] . toUpperCase ( ) } 
7174      </ div > 
7275    )  : ( 
73-       < Avatar  size = { size }  className = "border dark:border-slate-700" > 
76+       < Avatar 
77+         className = { `border dark:border-slate-700 ${ size  ===  'sm'  ? 'w-6 h-6'  : 'w-10 h-10' }  } 
78+       > 
7479        < AvatarImage  src = { avatarUrl }  alt = { avatarName }  /> 
7580        < AvatarFallback > { avatarFallback } </ AvatarFallback > 
7681      </ Avatar > 
0 commit comments