removed reference to params on layout
This commit is contained in:
@@ -1,15 +1,10 @@
|
|||||||
"use client";
|
|
||||||
|
|
||||||
|
|
||||||
import Nav from "@/components/Nav";
|
import Nav from "@/components/Nav";
|
||||||
|
|
||||||
import Footer from "@/components/Footer";
|
import Footer from "@/components/Footer";
|
||||||
|
|
||||||
export default function Layout({children}: {
|
export default function Layout({children}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
params: Promise<{ id: string }>;
|
|
||||||
}) {
|
}) {
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ minHeight: "100vh", paddingBottom: 36 }}>
|
<div style={{ minHeight: "100vh", paddingBottom: 36 }}>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -3,10 +3,8 @@
|
|||||||
import Profile from "@/components/Profile";
|
import Profile from "@/components/Profile";
|
||||||
export default function ProfilePage() {
|
export default function ProfilePage() {
|
||||||
return (
|
return (
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<Profile />
|
<Profile />
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,14 +3,10 @@ import Nav from "@/components/Nav";
|
|||||||
|
|
||||||
import Footer from "@/components/Footer";
|
import Footer from "@/components/Footer";
|
||||||
|
|
||||||
export default async function Layout({children, params}: {
|
export default async function ProjectLayout({children}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
params: Promise<{ slug: string }>;
|
|
||||||
}) {
|
}) {
|
||||||
|
|
||||||
const {slug} = await params;
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ minHeight: "100vh", paddingBottom: 36 }}>
|
<div style={{ minHeight: "100vh", paddingBottom: 36 }}>
|
||||||
<div
|
<div
|
||||||
@@ -42,7 +38,7 @@ export default async function Layout({children, params}: {
|
|||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<Nav section={"project"} subtitle={slug} />
|
<Nav section={"project"} />
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -19,8 +19,7 @@
|
|||||||
"remark-html": "^16.0.1",
|
"remark-html": "^16.0.1",
|
||||||
"remark-rehype": "^11.1.2",
|
"remark-rehype": "^11.1.2",
|
||||||
"rehype-stringify": "^10.0.1",
|
"rehype-stringify": "^10.0.1",
|
||||||
"rehype-raw": "^7.0.0",
|
"rehype-raw": "^7.0.0"
|
||||||
"rehype-rewrite":"^4.0.4"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/postcss": "^4",
|
"@tailwindcss/postcss": "^4",
|
||||||
|
|||||||
Reference in New Issue
Block a user