Desc:
- Perubahan pengambilan data dari API ke Function use server
No issue
This commit is contained in:
2023-10-18 16:09:32 +08:00
parent 5f430786b4
commit 2a97165d1f
46 changed files with 398 additions and 345 deletions

View File

@@ -1,9 +1,13 @@
import { PortofolioLayout } from "@/app_modules/katalog/portofolio";
import { getOnePortofolio } from "@/app_modules/katalog/portofolio/fun/get_one_portofolio";
export default async function Layout({ children, params }: { children: any, params: {id: string} }) {
const getPorto = await getOnePortofolio(params.id)
export default async function Layout({ children }: { children: any }) {
return (
<>
<PortofolioLayout>{children}</PortofolioLayout>
<PortofolioLayout profileId={getPorto?.profileId}>{children}</PortofolioLayout>
</>
);
}