diff --git a/components/Layout/index.jsx b/components/Layout/index.jsx index 9c48efa..dfe472b 100644 --- a/components/Layout/index.jsx +++ b/components/Layout/index.jsx @@ -23,7 +23,7 @@ export default ({ metadata, headings, readingTime, children }) => ( <> - +
diff --git a/components/Navigation/index.jsx b/components/Navigation/index.jsx index 1145153..c2c9903 100644 --- a/components/Navigation/index.jsx +++ b/components/Navigation/index.jsx @@ -11,8 +11,8 @@ import Logo from '#theme/Logo'; /** * NavBar component that displays the headings, search, etc. */ -export default () => { - const [theme, toggleTheme] = useTheme(); +export default ({ metadata }) => { + const [themePreference, setThemePreference] = useTheme(); return ( { }, ]} > - +