Chapter 4 - add layout

This commit is contained in:
2023-12-27 14:21:42 +01:00
parent 8b8b67b62c
commit 396e81bd41

12
app/dashboard/layout.tsx Normal file
View File

@@ -0,0 +1,12 @@
import SideNav from '@/app/ui/dashboard/sidenav';
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<div className="flex h-screen flex-col md:flex-row md:overflow-hidden">
<div className="w-full flex-none md:w-64">
<SideNav />
</div>
<div className="flex-grow p-6 md:overflow-y-auto md:p-12">{children}</div>
</div>
);
}