@@ -11,7 +11,7 @@ import { useInitials } from '@/hooks/use-initials';
1111import { cn } from '@/lib/utils' ;
1212import { type BreadcrumbItem , type NavItem , type SharedData } from '@/types' ;
1313import { 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' ;
1515import AppLogo from './app-logo' ;
1616import AppLogoIcon from './app-logo-icon' ;
1717
@@ -27,16 +27,16 @@ const rightNavItems: NavItem[] = [
2727 {
2828 title : 'Repository' ,
2929 url : 'https://github.com/laravel/react-starter-kit' ,
30- icon : FolderGit2 ,
30+ icon : Folder ,
3131 } ,
3232 {
3333 title : 'Documentation' ,
3434 url : 'https://laravel.com/docs/starter-kits' ,
35- icon : BookOpenText ,
35+ icon : BookOpen ,
3636 } ,
3737] ;
3838
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' ;
4040
4141interface AppHeaderProps {
4242 breadcrumbs ?: BreadcrumbItem [ ] ;
@@ -127,7 +127,7 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
127127 < div className = "ml-auto flex items-center space-x-2" >
128128 < div className = "relative flex items-center space-x-1" >
129129 < 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" />
131131 </ Button >
132132 < div className = "hidden lg:flex" >
133133 { rightNavItems . map ( ( item ) => (
@@ -141,9 +141,7 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
141141 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"
142142 >
143143 < 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" /> }
147145 </ a >
148146 </ TooltipTrigger >
149147 < TooltipContent >
@@ -156,14 +154,13 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
156154 </ div >
157155 < DropdownMenu >
158156 < 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 " >
161159 < AvatarImage src = { auth . user . avatar } alt = { auth . user . name } />
162160 < AvatarFallback className = "rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white" >
163161 { getInitials ( auth . user . name ) }
164162 </ AvatarFallback >
165163 </ Avatar >
166- < ChevronDown className = "hidden h-4 w-4 lg:block" />
167164 </ Button >
168165 </ DropdownMenuTrigger >
169166 < DropdownMenuContent className = "w-56" align = "end" >
0 commit comments