fix
Desc: - Perubahan pengambilan data dari API ke Function use server No issue
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user