Skip to content

Commit a6e260c

Browse files
committed
fix formatting
1 parent f288d7e commit a6e260c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/components/DocsHeader.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export function DocsHeader({
3232
}) {
3333
let pathname = usePathname()
3434

35-
let section = flatNavigation.find(
36-
(section) => section.links?.find((link) => link.href === pathname),
35+
let section = flatNavigation.find((section) =>
36+
section.links?.find((link) => link.href === pathname),
3737
)
3838

3939
if (!title && !section) {

src/components/Search.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,8 @@ function SearchResult({
162162
let id = useId()
163163
let pathname = usePathname()
164164

165-
let sectionTitle = flatNavigation.find(
166-
(section) =>
167-
section.links?.find((link) => link.href === result.url.split('#')[0]),
165+
let sectionTitle = flatNavigation.find((section) =>
166+
section.links?.find((link) => link.href === result.url.split('#')[0]),
168167
)?.title
169168
let hierarchy = [sectionTitle, result.pageTitle].filter(
170169
(x): x is string => typeof x === 'string',

0 commit comments

Comments
 (0)