Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
test layout
Browse files Browse the repository at this point in the history
  • Loading branch information
izaakwalz committed May 3, 2024
1 parent 21618a0 commit cf76d05
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/app/(dashboard)/@modal/default.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Default() {
return null;
}
3 changes: 3 additions & 0 deletions src/app/(dashboard)/@modal/play/home/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Page() {
return <div className="flex items-center justify-center">Play</div>;
}
9 changes: 9 additions & 0 deletions src/app/(dashboard)/@modal/play/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Shell } from '@/components/shell';

export default function ModalLayout({ children }: React.PropsWithChildren) {
return (
<section className="h-screen w-full bg-primary">
<Shell>{children}</Shell>
</section>
);
}
9 changes: 7 additions & 2 deletions src/app/(dashboard)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import SidebarNav from '@/components/layouts/sidebar-nav';

export default async function DashboardLayout({
children
children,
modal
}: Readonly<{
children: React.ReactNode;
modal: React.ReactNode;
}>) {
return (
<section className="min-h-screen w-full overflow-hidden">
Expand All @@ -12,7 +14,10 @@ export default async function DashboardLayout({
<section className="relative ml-[214px] box-border flex min-h-min w-full basis-auto flex-col">
{/* <MainNav /> */}
<main className="container mx-auto box-border flex min-h-0 flex-auto flex-col">
<div className="overflow-y-auto">{children}</div>
<div className="overflow-y-auto">
{children}
{/* {modal} */}
</div>
</main>
</section>
</div>
Expand Down

0 comments on commit cf76d05

Please sign in to comment.