[taskboard] fix active navigation state

This commit is contained in:
2026-03-07 13:23:27 -08:00
parent 77e7fbd860
commit 430dcd209b
3 changed files with 8 additions and 25 deletions

View File

@@ -1,5 +1,4 @@
import type { Metadata } from "next";
import { headers } from "next/headers";
import "@/app/globals.css";
import { AppShell } from "@/components/app-shell";
@@ -14,9 +13,6 @@ export default async function RootLayout({
}: Readonly<{
children: React.ReactNode;
}>) {
const headerList = await headers();
const pathname = headerList.get("x-pathname") || "/tasks";
return (
<html lang="en">
<head>
@@ -28,7 +24,7 @@ export default async function RootLayout({
/>
</head>
<body>
<AppShell pathname={pathname}>{children}</AppShell>
<AppShell>{children}</AppShell>
</body>
</html>
);