fix profile

deskripsi:
- fix edit profile: server action to API
This commit is contained in:
2025-02-07 14:12:49 +08:00
parent ae0167c902
commit 2a9d170941
7 changed files with 223 additions and 60 deletions

View File

@@ -1,13 +1,10 @@
import EditProfile from "@/app_modules/katalog/profile/edit/view";
import { Profile_getOneProfileAndUserById } from "@/app_modules/katalog/profile/fun/get/get_one_user_profile";
export default async function Page({ params }: { params: { id: string } }) {
let profileId = params.id;
const dataProfile = await Profile_getOneProfileAndUserById(profileId);
export default async function Page() {
return (
<>
<EditProfile data={dataProfile as any} />
<EditProfile />
</>
);
}