removed reference to params on layout
This commit is contained in:
@@ -3,14 +3,10 @@ import Nav from "@/components/Nav";
|
||||
|
||||
import Footer from "@/components/Footer";
|
||||
|
||||
export default async function Layout({children, params}: {
|
||||
export default async function ProjectLayout({children}: {
|
||||
children: React.ReactNode;
|
||||
params: Promise<{ slug: string }>;
|
||||
}) {
|
||||
|
||||
const {slug} = await params;
|
||||
|
||||
|
||||
return (
|
||||
<div style={{ minHeight: "100vh", paddingBottom: 36 }}>
|
||||
<div
|
||||
@@ -42,7 +38,7 @@ export default async function Layout({children, params}: {
|
||||
|
||||
</header>
|
||||
|
||||
<Nav section={"project"} subtitle={slug} />
|
||||
<Nav section={"project"} />
|
||||
|
||||
<main>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user