@@ -80,9 +80,9 @@ export function DocNav({
8080 } ,
8181 ) ;
8282
83- const searchResults = searchTerm
84- ? fuse . search ( searchTerm ) . map ( ( result : any ) => result . item )
85- : null ;
83+ const searchResults = searchTerm ?
84+ fuse . search ( searchTerm ) . map ( ( result : any ) => result . item ) :
85+ null ;
8686
8787 const filteredData = searchTerm ? [ ] : data ;
8888
@@ -159,11 +159,11 @@ export function DocNav({
159159
160160 { /* Navigation content */ }
161161 < div class = "flex-1 overflow-y-auto px-6 py-4" >
162- { searchResults
163- ? (
162+ { searchResults ?
163+ (
164164 /* Search results */
165- searchResults . length > 0
166- ? (
165+ searchResults . length > 0 ?
166+ (
167167 < div class = "space-y-1" >
168168 < div class = "text-xs font-semibold uppercase text-subtext0 tracking-wider mb-3" >
169169 Search Results ({ searchResults . length } )
@@ -174,9 +174,9 @@ export function DocNav({
174174 href = { result . path }
175175 onClick = { closeNav }
176176 class = { `flex items-center space-x-3 py-3 px-4 rounded-lg text-sm transition-all duration-200 ${
177- path === result . path
178- ? "bg-surface1 text-text font-medium border border-surface2"
179- : "text-subtext1 hover:bg-surface0/50 hover:text-text"
177+ path === result . path ?
178+ "bg-surface1 text-text font-medium border border-surface2" :
179+ "text-subtext1 hover:bg-surface0/50 hover:text-text"
180180 } `}
181181 >
182182 < span class = "text-lg" > { result . sectionIcon } </ span >
@@ -189,8 +189,8 @@ export function DocNav({
189189 </ a >
190190 ) ) }
191191 </ div >
192- )
193- : (
192+ ) :
193+ (
194194 < div class = "text-center py-12" >
195195 < div class = "text-4xl mb-3" > 🔍</ div >
196196 < div class = "text-subtext0 text-sm" > No results found</ div >
@@ -199,8 +199,8 @@ export function DocNav({
199199 </ div >
200200 </ div >
201201 )
202- )
203- : (
202+ ) :
203+ (
204204 /* Regular navigation */
205205 < div class = "space-y-2" >
206206 { filteredData . map (
@@ -216,9 +216,9 @@ export function DocNav({
216216 type = "button"
217217 onClick = { ( ) => toggleSection ( topicName ) }
218218 class = { `w-full flex items-center justify-between py-3 px-4 rounded-lg text-sm font-semibold transition-all duration-200 ${
219- hasCurrentPage
220- ? "bg-surface0/50 text-text"
221- : "text-subtext0 hover:bg-surface0/30 hover:text-text"
219+ hasCurrentPage ?
220+ "bg-surface0/50 text-text" :
221+ "text-subtext0 hover:bg-surface0/30 hover:text-text"
222222 } `}
223223 >
224224 < div class = "flex items-center space-x-3" >
@@ -249,9 +249,9 @@ export function DocNav({
249249 href = { routePath }
250250 onClick = { closeNav }
251251 class = { `block py-2.5 px-3 rounded-lg text-sm transition-all duration-200 ${
252- path === routePath
253- ? "bg-surface1 text-text font-medium border border-surface2 shadow-sm"
254- : "text-subtext1 hover:bg-surface0/50 hover:text-text hover:translate-x-1"
252+ path === routePath ?
253+ "bg-surface1 text-text font-medium border border-surface2 shadow-sm" :
254+ "text-subtext1 hover:bg-surface0/50 hover:text-text hover:translate-x-1"
255255 } `}
256256 >
257257 { routeName }
0 commit comments