File tree 6 files changed +11
-11
lines changed
6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const wrapMenu = (logo?.url || logo?.html) && items?.length && Astro.slots.has('
56
56
{ items .map (item => (
57
57
<li >
58
58
<a
59
- href = { item .url }
59
+ href = { item .href }
60
60
target = { item .target }
61
61
class :list = { [item .active && styles .active ]}
62
62
>
Original file line number Diff line number Diff line change 55
55
{#each items as item }
56
56
<li >
57
57
<a
58
- href ={item .url }
58
+ href ={item .href }
59
59
target ={item .target }
60
60
class ={item .active ? styles .active : null }
61
61
>
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const Menu = ({
67
67
{ items . map ( ( item , index ) => (
68
68
< li key = { index } >
69
69
< a
70
- href = { item . url }
70
+ href = { item . href }
71
71
target = { item . target }
72
72
className = { item . active ? styles . active : undefined }
73
73
>
Original file line number Diff line number Diff line change 1
1
export type MenuProps = {
2
2
items ?: {
3
- url : string
3
+ href : string
4
4
name : string
5
5
target ?: string
6
6
active ?: boolean
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ export const overflowTabs = Array(10).fill({
74
74
} ) )
75
75
76
76
export const menu = [
77
- { name : 'Home' , url : '/' } ,
78
- { name : 'Docs' , url : '/docs' }
77
+ { name : 'Home' , href : '/' } ,
78
+ { name : 'Docs' , href : '/docs' }
79
79
]
80
80
81
81
export const menuLogo = {
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ const menu = {
21
21
html: logo
22
22
},
23
23
items: [
24
- { url : ' /svelte' , name: ' Svelte' , active: isPath (' svelte' ) },
25
- { url : ' /react' , name: ' React' , active: isPath (' react' ) },
26
- { url : ' /themes' , name: ' Themes' , active: isPath (' themes' ) },
27
- { url : ' /resets' , name: ' Resets' , active: isPath (' resets' ) },
28
- { url : ' /utilities' , name: ' Utilities' , active: isPath (' utilities' ) }
24
+ { href : ' /svelte' , name: ' Svelte' , active: isPath (' svelte' ) },
25
+ { href : ' /react' , name: ' React' , active: isPath (' react' ) },
26
+ { href : ' /themes' , name: ' Themes' , active: isPath (' themes' ) },
27
+ { href : ' /resets' , name: ' Resets' , active: isPath (' resets' ) },
28
+ { href : ' /utilities' , name: ' Utilities' , active: isPath (' utilities' ) }
29
29
]
30
30
}
31
31
You canβt perform that action at this time.
0 commit comments