[taskboard] fix active navigation state
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user