Skip to content

Commit 9499364

Browse files
committed
fixup!
1 parent 8336df8 commit 9499364

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/Navigation/index.jsx

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

1717
return (
@@ -36,7 +36,7 @@ export default () => {
3636
},
3737
]}
3838
>
39-
<SearchBox />
39+
<SearchBox pathname={metadata.path} />
4040
<ThemeToggle
4141
onClick={toggleTheme}
4242
aria-label={`Switch to ${theme === 'light' ? 'dark' : 'light'} theme`}

0 commit comments

Comments
 (0)