diff --git a/src/app/dev/profile/edit/[id]/layout.tsx b/src/app/dev/profile/edit/[id]/layout.tsx index 0b477dfa..961fd49d 100644 --- a/src/app/dev/profile/edit/[id]/layout.tsx +++ b/src/app/dev/profile/edit/[id]/layout.tsx @@ -1,12 +1,18 @@ import { funGetUserProfile } from "@/app_modules/fun_global/get_user_profile"; import { EditProfileLayout } from "@/app_modules/katalog/profile"; -export default async function Layout({ children, params }: { children: any, params: {id: string} }) { - const data = await funGetUserProfile(params.id) - const profileId = data?.Profile?.id +export default async function Layout({ + children, + params, +}: { + children: any; + params: { id: string }; +}) { + let profileId = params.id; + return ( <> - {children} + {children} ); } diff --git a/src/app_modules/home/layout.tsx b/src/app_modules/home/layout.tsx index 63774f2b..cf561605 100644 --- a/src/app_modules/home/layout.tsx +++ b/src/app_modules/home/layout.tsx @@ -109,9 +109,9 @@ export default function HomeLayout({ } }} > - + - {user.Profile === null ? : } + {user.Profile === null ? : } Profile diff --git a/src/app_modules/katalog/main/view.tsx b/src/app_modules/katalog/main/view.tsx index 526903a3..083d7de4 100644 --- a/src/app_modules/katalog/main/view.tsx +++ b/src/app_modules/katalog/main/view.tsx @@ -41,7 +41,9 @@ export default function KatalogView({ profile={profile} userLoginId={userLoginId} /> - {profile.User.id === userLoginId ? : ""} + + {profile.User.id === userLoginId ? : ""} + ); diff --git a/src/app_modules/katalog/profile/edit/layout.tsx b/src/app_modules/katalog/profile/edit/layout.tsx index 1d7f6b5b..901c7b54 100644 --- a/src/app_modules/katalog/profile/edit/layout.tsx +++ b/src/app_modules/katalog/profile/edit/layout.tsx @@ -12,13 +12,7 @@ import { IconArrowLeft } from "@tabler/icons-react"; import { useRouter } from "next/navigation"; import ComponentKatalog_HeaderTamplate from "../../component/header_tamplate"; -export default function EditProfileLayout({ - children, - profileId, -}: { - children: any; - profileId: any; -}) { +export default function EditProfileLayout({ children }: { children: any }) { const router = useRouter(); return ( <>