fix background update

This commit is contained in:
2025-02-27 11:43:09 +08:00
parent 74792a7636
commit e5a2efebf0
5 changed files with 66 additions and 28 deletions

View File

@@ -1,12 +1,9 @@
import { Profile_getOneById } from "@/app_modules/katalog/profile/fun/get/get_one_profile"
import Profile_UpdateFotoBackground from "@/app_modules/katalog/profile/upload/foto_background"
export default async function Page({params}:{params: {id: string}}) {
let profileId = params.id
const dataProfile = await Profile_getOneById(profileId)
return <>
<Profile_UpdateFotoBackground dataProfile={dataProfile as any}/>
export default async function Page() {
return (
<>
<Profile_UpdateFotoBackground />
</>
}
);
}

View File

@@ -1,13 +1,9 @@
import { UploadFotoProfile } from "@/app_modules/katalog/profile";
import { Profile_getOneById } from "@/app_modules/katalog/profile/fun/get/get_one_profile";
export default async function Page({ params }: { params: { id: string } }) {
let profileId = params.id;
const dataProfile = await Profile_getOneById(profileId);
export default async function Page() {
return (
<>
<UploadFotoProfile dataProfile={dataProfile as any} />
<UploadFotoProfile />
</>
);
}