@@ -33,23 +33,58 @@ export const NAV_SECTIONS: NavSection[] = [
3333 {
3434 title : "Introduction" ,
3535 items : [
36- { label : "Getting Started" , hash : "#getting-started" , icon : mdiRocketLaunch , component : GettingStarted } ,
37- { label : "Basic Usage" , hash : "#basic-usage" , icon : mdiFlash , component : BasicUsage } ,
36+ {
37+ label : "Getting Started" ,
38+ hash : "#getting-started" ,
39+ icon : mdiRocketLaunch ,
40+ component : GettingStarted ,
41+ } ,
42+ {
43+ label : "Basic Usage" ,
44+ hash : "#basic-usage" ,
45+ icon : mdiFlash ,
46+ component : BasicUsage ,
47+ } ,
3848 ] ,
3949 } ,
4050 {
4151 title : "Features" ,
4252 items : [
43- { label : "TypeScript Support" , hash : "#typescript" , icon : mdiLanguageTypescript , component : TypeScriptSupport } ,
44- { label : "Loading Files" , hash : "#loading-files" , icon : mdiFileCode , component : LoadingFiles } ,
45- { label : "CSS & CSS Modules" , hash : "#css-modules" , icon : mdiPalette , component : CssModules } ,
53+ {
54+ label : "TypeScript Support" ,
55+ hash : "#typescript" ,
56+ icon : mdiLanguageTypescript ,
57+ component : TypeScriptSupport ,
58+ } ,
59+ {
60+ label : "Loading Files" ,
61+ hash : "#loading-files" ,
62+ icon : mdiFileCode ,
63+ component : LoadingFiles ,
64+ } ,
65+ {
66+ label : "CSS & CSS Modules" ,
67+ hash : "#css-modules" ,
68+ icon : mdiPalette ,
69+ component : CssModules ,
70+ } ,
4671 ] ,
4772 } ,
4873 {
4974 title : "Reference" ,
5075 items : [
51- { label : "API Reference" , hash : "#api-reference" , icon : mdiApi , component : ApiReference } ,
52- { label : "Examples" , hash : "#examples" , icon : mdiPlayCircleOutline , component : Examples } ,
76+ {
77+ label : "API Reference" ,
78+ hash : "#api-reference" ,
79+ icon : mdiApi ,
80+ component : ApiReference ,
81+ } ,
82+ {
83+ label : "Examples" ,
84+ hash : "#examples" ,
85+ icon : mdiPlayCircleOutline ,
86+ component : Examples ,
87+ } ,
5388 ] ,
5489 } ,
5590] ;
@@ -68,11 +103,16 @@ export default function App() {
68103 } , [ ] ) ;
69104
70105 const allItems = NAV_SECTIONS . flatMap ( ( s ) => s . items ) ;
71- const activeItem = allItems . find ( ( i ) => i . hash === currentHash ) ?? allItems [ 0 ] ;
106+ const activeItem =
107+ allItems . find ( ( i ) => i . hash === currentHash ) ?? allItems [ 0 ] ;
72108 const PageComponent = activeItem . component ;
73109
74110 return (
75- < Layout navSections = { NAV_SECTIONS } currentHash = { currentHash } onNavigate = { setCurrentHash } >
111+ < Layout
112+ navSections = { NAV_SECTIONS }
113+ currentHash = { currentHash }
114+ onNavigate = { setCurrentHash }
115+ >
76116 < PageComponent />
77117 </ Layout >
78118 ) ;
0 commit comments