keep sidebar closed by default on landing pages.
This commit is contained in:
parent
0400182d4c
commit
b64a5f1d30
|
@ -6,7 +6,7 @@ import './styles.scss'
|
|||
|
||||
export default function LayoutWrapper(props) {
|
||||
const isIndexPage = useIsVersionIndexPage()
|
||||
const store = globalStore.useCreateStore({ hiddenSidebar: false })
|
||||
const store = globalStore.useCreateStore({ hiddenSidebar: isIndexPage })
|
||||
|
||||
return (
|
||||
<globalStore.Provider store={store}>
|
||||
|
|
Loading…
Reference in New Issue