Fix Sidebar default open/close

This commit is contained in:
Michael 2024-12-20 16:37:50 -06:00
parent 1f650e1e9f
commit 4cdfebd5b3
Signed by: TheShadowEevee
GPG key ID: 7A8AA92B3BAFAB75
2 changed files with 3 additions and 3 deletions

View file

@ -17,12 +17,12 @@ import {
interface Props {
children: React.ReactNode
defaultSidebarOpen: boolean
defaultOpen: boolean
}
export default function Page(props: Props) {
return (
<SidebarProvider defaultSidebarOpen={props.defaultSidebarOpen}>
<SidebarProvider defaultOpen={props.defaultOpen}>
<AppSidebar />
<SidebarInset>
<header className="flex h-16 shrink-0 items-center gap-2">

View file

@ -12,7 +12,7 @@ import Page from "@/app/dashboard/page";
<title>Website</title>
</head>
<body>
<Page client:load defaultSidebarOpen={false}>
<Page client:load defaultOpen={true}>
<slot />
</Page>
</body>