We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8336df8 commit 9499364Copy full SHA for 9499364
1 file changed
components/Navigation/index.jsx
@@ -11,7 +11,7 @@ import Logo from '#theme/Logo';
11
/**
12
* NavBar component that displays the headings, search, etc.
13
*/
14
-export default () => {
+export default ({ metadata }) => {
15
const [theme, toggleTheme] = useTheme();
16
17
return (
@@ -36,7 +36,7 @@ export default () => {
36
},
37
]}
38
>
39
- <SearchBox />
+ <SearchBox pathname={metadata.path} />
40
<ThemeToggle
41
onClick={toggleTheme}
42
aria-label={`Switch to ${theme === 'light' ? 'dark' : 'light'} theme`}
0 commit comments