File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 import { BreadCrumbStore } from ' $lib/stores/BreadCrumbStore' ;
1313 import { UserStore } from ' $lib/stores/UserStore' ;
1414 import { cn } from ' $lib/utils' ;
15+ import type { Pathname } from ' $app/types' ;
1516
1617 let sidebar = useSidebar ();
1718 </script >
1819
19- {#snippet dropdownItem (name : string , url : string )}
20+ {#snippet dropdownItem (name : string , url : Pathname )}
2021 <DropdownMenu .Item class ="cursor-pointer" onclick ={() => goto (url )}>
2122 {name }
2223 </DropdownMenu .Item >
2324{/ snippet }
24- {#snippet headerItem (text : string , href : string )}
25+ {#snippet headerItem (text : string , href : Pathname )}
2526 <Button {href }>{text }</Button >
2627{/ snippet }
2728
Original file line number Diff line number Diff line change 3636 import type { AnyComponent } from ' $lib/types/AnyComponent' ;
3737 import { isMobile , isSerialSupported } from ' $lib/utils/compatibility' ;
3838 import { Collapsible } from ' bits-ui' ;
39+ import type { Pathname } from ' $app/types' ;
3940
4041 let currentUser = $derived ($UserStore .self );
4142
4849
4950 interface Item extends Entry {
5051 class? : string ;
51- href? : string ;
52+ href? : Pathname ;
5253 target? : string ;
5354 }
5455
You can’t perform that action at this time.
0 commit comments