Error coding, rebuild server

This commit is contained in:
2024-01-22 10:47:53 +08:00
parent 9e34da0b57
commit 9143f438d8
4 changed files with 16 additions and 14 deletions

View File

@@ -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 (
<>
<EditProfileLayout profileId={profileId}>{children}</EditProfileLayout>
<EditProfileLayout>{children}</EditProfileLayout>
</>
);
}