@@ -18,20 +18,20 @@ import AppLogoIcon from './app-logo-icon';
1818const mainNavItems : NavItem [ ] = [
1919 {
2020 title : 'Dashboard' ,
21- url : '/dashboard' ,
21+ href : '/dashboard' ,
2222 icon : LayoutGrid ,
2323 } ,
2424] ;
2525
2626const rightNavItems : NavItem [ ] = [
2727 {
2828 title : 'Repository' ,
29- url : 'https://github.com/laravel/react-starter-kit' ,
29+ href : 'https://github.com/laravel/react-starter-kit' ,
3030 icon : Folder ,
3131 } ,
3232 {
3333 title : 'Documentation' ,
34- url : 'https://laravel.com/docs/starter-kits' ,
34+ href : 'https://laravel.com/docs/starter-kits' ,
3535 icon : BookOpen ,
3636 } ,
3737] ;
@@ -67,7 +67,7 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
6767 < div className = "flex h-full flex-col justify-between text-sm" >
6868 < div className = "flex flex-col space-y-4" >
6969 { mainNavItems . map ( ( item ) => (
70- < Link key = { item . title } href = { item . url } className = "flex items-center space-x-2 font-medium" >
70+ < Link key = { item . title } href = { item . href } className = "flex items-center space-x-2 font-medium" >
7171 { item . icon && < Icon iconNode = { item . icon } className = "h-5 w-5" /> }
7272 < span > { item . title } </ span >
7373 </ Link >
@@ -78,7 +78,7 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
7878 { rightNavItems . map ( ( item ) => (
7979 < a
8080 key = { item . title }
81- href = { item . url }
81+ href = { item . href }
8282 target = "_blank"
8383 rel = "noopener noreferrer"
8484 className = "flex items-center space-x-2 font-medium"
@@ -105,17 +105,17 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
105105 { mainNavItems . map ( ( item , index ) => (
106106 < NavigationMenuItem key = { index } className = "relative flex h-full items-center" >
107107 < Link
108- href = { item . url }
108+ href = { item . href }
109109 className = { cn (
110110 navigationMenuTriggerStyle ( ) ,
111- page . url === item . url && activeItemStyles ,
111+ page . url === item . href && activeItemStyles ,
112112 'h-9 cursor-pointer px-3' ,
113113 ) }
114114 >
115115 { item . icon && < Icon iconNode = { item . icon } className = "mr-2 h-4 w-4" /> }
116116 { item . title }
117117 </ Link >
118- { page . url === item . url && (
118+ { page . url === item . href && (
119119 < div className = "absolute bottom-0 left-0 h-0.5 w-full translate-y-px bg-black dark:bg-white" > </ div >
120120 ) }
121121 </ NavigationMenuItem >
@@ -135,7 +135,7 @@ export function AppHeader({ breadcrumbs = [] }: AppHeaderProps) {
135135 < Tooltip >
136136 < TooltipTrigger >
137137 < a
138- href = { item . url }
138+ href = { item . href }
139139 target = "_blank"
140140 rel = "noopener noreferrer"
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"
0 commit comments