Skip to content

Commit b8423f2

Browse files
committed
fixup!
1 parent 99c3625 commit b8423f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/generators/web/ui/components/NavBar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Logo from '#theme/Logo';
1212
/**
1313
* NavBar component that displays the headings, search, etc.
1414
*/
15-
export default ({ pathname }) => {
15+
export default ({ metadata }) => {
1616
const [theme, toggleTheme] = useTheme();
1717

1818
return (
@@ -21,7 +21,7 @@ export default ({ pathname }) => {
2121
sidebarItemTogglerAriaLabel="Toggle navigation menu"
2222
navItems={[]}
2323
>
24-
<SearchBox pathname={pathname} />
24+
<SearchBox pathname={metadata.path} />
2525
<ThemeToggle
2626
onClick={toggleTheme}
2727
aria-label={`Switch to ${theme === 'light' ? 'dark' : 'light'} theme`}

0 commit comments

Comments
 (0)