Fix Sidebar default open/close
This commit is contained in:
parent
1f650e1e9f
commit
4cdfebd5b3
2 changed files with 3 additions and 3 deletions
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue