diff --git a/app/profile/layout.tsx b/app/profile/layout.tsx index 42e194e..dd38e26 100644 --- a/app/profile/layout.tsx +++ b/app/profile/layout.tsx @@ -1,15 +1,10 @@ -"use client"; - import Nav from "@/components/Nav"; - import Footer from "@/components/Footer"; + export default function Layout({children}: { children: React.ReactNode; - params: Promise<{ id: string }>; }) { - - return (
- ); } diff --git a/app/project/layout.tsx b/app/project/layout.tsx index bf8747b..8678644 100644 --- a/app/project/layout.tsx +++ b/app/project/layout.tsx @@ -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 (
-