fix
Desc: - Perubahan pengambilan data dari API ke Function use server No issue
This commit is contained in:
14
src/app/dev/profile/edit/[id]/page.tsx
Normal file
14
src/app/dev/profile/edit/[id]/page.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { funGetUserProfile } from "@/app_modules/fun/get_user_profile";
|
||||
import { getProfile } from "@/app_modules/katalog/profile";
|
||||
import EditProfile from "@/app_modules/katalog/profile/edit/view";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
const data = await funGetUserProfile(params.id);
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* {JSON.stringify(data)} */}
|
||||
<EditProfile data={data as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user