Skip to content

Commit 8f2eed4

Browse files
committed
feat: add new route & sub layout
1 parent 22cfe4a commit 8f2eed4

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

app/dashboard/customers/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function Page() {
2+
return <div>customers</div>;
3+
}

app/dashboard/invoices/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function Page() {
2+
return <div>invoices</div>;
3+
}

app/dashboard/layout.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import SideNav from "@/app/ui/dashboard/sidenav";
2+
3+
export default function Layout({ children }: { children: React.ReactNode }) {
4+
return (
5+
<div className="flex h-screen flex-col md:flex-row md:overflow-hidden">
6+
<div className="w-full flex-none md:w-64">
7+
<SideNav />
8+
</div>
9+
<div className="flex-grow p-6 md:overflow-y-auto md:p-12">{children}</div>
10+
</div>
11+
);
12+
}

app/dashboard/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function Page() {
2+
return <div>dashboard</div>;
3+
}

0 commit comments

Comments
 (0)