diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index 00f4f10..573bdd3 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -25,7 +25,11 @@ export default async function PageDashboard() { })) return ( - + + + + ) diff --git a/components/layout/AppShell.tsx b/components/layout/AppShell.tsx index e7387a7..7dc9a96 100644 --- a/components/layout/AppShell.tsx +++ b/components/layout/AppShell.tsx @@ -92,10 +92,13 @@ const NAV_EXTRA: NavItem[] = [ { text: '設定', href: '/settings', icon: Settings }, ] +const ALL_NAV_ITEMS = [...NAV_GROUPS.flatMap((g) => g.items), ...NAV_EXTRA] + const SIDEBAR_COLLAPSED_WIDTH = 56 interface AppShellProps { children: React.ReactNode + title?: string user?: { name: string iconUrl: string | null @@ -106,6 +109,7 @@ interface AppShellProps { export default function AppShell({ children, + title, user, breadcrumbs, initialSidebarOpen = true, @@ -136,8 +140,6 @@ export default function AppShell({ [router], ) - const allNavItems = [...NAV_GROUPS.flatMap((g) => g.items), ...NAV_EXTRA] - const sideNavContent = (