@@ -11,7 +11,7 @@ import { useInitials } from '@/hooks/use-initials';
11
11
import { cn } from '@/lib/utils' ;
12
12
import { type BreadcrumbItem , type NavItem , type SharedData } from '@/types' ;
13
13
import { Link , usePage } from '@inertiajs/react' ;
14
- import { BookOpenText , ChevronDown , FolderGit2 , LayoutGrid , Menu , Search } from 'lucide-react' ;
14
+ import { BookOpen , Folder , LayoutGrid , Menu , Search } from 'lucide-react' ;
15
15
import AppLogo from './app-logo' ;
16
16
import AppLogoIcon from './app-logo-icon' ;
17
17
@@ -27,16 +27,16 @@ const rightNavItems: NavItem[] = [
27
27
{
28
28
title : 'Repository' ,
29
29
url : 'https://github.com/laravel/react-starter-kit' ,
30
- icon : FolderGit2 ,
30
+ icon : Folder ,
31
31
} ,
32
32
{
33
33
title : 'Documentation' ,
34
34
url : 'https://laravel.com/docs/starter-kits' ,
35
- icon : BookOpenText ,
35
+ icon : BookOpen ,
36
36
} ,
37
37
] ;
38
38
39
- const activeItemStyles = 'bg-neutral-100 text-neutral-900 dark:bg-neutral-800 dark:text-neutral-100' ;
39
+ const activeItemStyles = 'text-neutral-900 dark:bg-neutral-800 dark:text-neutral-100' ;
40
40
41
41
interface AppHeaderProps {
42
42
breadcrumbs ?: BreadcrumbItem [ ] ;
@@ -127,7 +127,7 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
127
127
< div className = "ml-auto flex items-center space-x-2" >
128
128
< div className = "relative flex items-center space-x-1" >
129
129
< Button variant = "ghost" size = "icon" className = "group h-9 w-9 cursor-pointer" >
130
- < Search className = "h-5 w -5 opacity-80 group-hover:opacity-100" />
130
+ < Search className = "!size -5 opacity-80 group-hover:opacity-100" />
131
131
</ Button >
132
132
< div className = "hidden lg:flex" >
133
133
{ rightNavItems . map ( ( item ) => (
@@ -141,9 +141,7 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
141
141
className = "group text-accent-foreground ring-offset-background hover:bg-accent hover:text-accent-foreground focus-visible:ring-ring ml-1 inline-flex h-9 w-9 items-center justify-center rounded-md bg-transparent p-0 text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50"
142
142
>
143
143
< span className = "sr-only" > { item . title } </ span >
144
- { item . icon && (
145
- < Icon iconNode = { item . icon } className = "h-4 w-4 opacity-80 group-hover:opacity-100" />
146
- ) }
144
+ { item . icon && < Icon iconNode = { item . icon } className = "size-5 opacity-80 group-hover:opacity-100" /> }
147
145
</ a >
148
146
</ TooltipTrigger >
149
147
< TooltipContent >
@@ -156,14 +154,13 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
156
154
</ div >
157
155
< DropdownMenu >
158
156
< DropdownMenuTrigger asChild >
159
- < Button variant = "ghost" className = "h-9 px-1.5 " >
160
- < Avatar className = "h-7 w-7 overflow-hidden rounded-lg " >
157
+ < Button variant = "ghost" className = "size-10 rounded-full p-1 " >
158
+ < Avatar className = "size-8 overflow-hidden rounded-full " >
161
159
< AvatarImage src = { auth . user . avatar } alt = { auth . user . name } />
162
160
< AvatarFallback className = "rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white" >
163
161
{ getInitials ( auth . user . name ) }
164
162
</ AvatarFallback >
165
163
</ Avatar >
166
- < ChevronDown className = "hidden h-4 w-4 lg:block" />
167
164
</ Button >
168
165
</ DropdownMenuTrigger >
169
166
< DropdownMenuContent className = "w-56" align = "end" >
0 commit comments