mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-24 13:15:48 +00:00
* Update next to canary * Update layout.tsx * Use canary * Remove serverActions flag warning * Use unstable_noStore * Add Date.now() test * Update metadataBase url * Create wrapper component for Cards * Update page.tsx * Misc * Delete unused data fetch * Add noStore to /invoices and /customers functions * Remove date.now() * Use canary * Rename component * Fix imports * Update types for useFormStatus and useFormState * Rename folder, add team members * fixed images and added login button pending state * Update dashboard/final-example/app/lib/data.ts Co-authored-by: Matt Kane <m@mk.gg> --------- Co-authored-by: Steven Tey <stevensteel97@gmail.com> Co-authored-by: Matt Kane <m@mk.gg>
13 lines
397 B
TypeScript
13 lines
397 B
TypeScript
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>
|
|
);
|
|
}
|