fix
Desc: - Perubahan minor Issue: Di server master bidang bisnis tidak terpanggil
This commit is contained in:
9
src/app/dev/portofolio/main/[id]/layout.tsx
Normal file
9
src/app/dev/portofolio/main/[id]/layout.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { PortofolioLayout } from "@/app_modules/katalog/portofolio";
|
||||
|
||||
export default async function Layout({ children }: { children: any }) {
|
||||
return (
|
||||
<>
|
||||
<PortofolioLayout>{children}</PortofolioLayout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
15
src/app/dev/portofolio/main/[id]/page.tsx
Normal file
15
src/app/dev/portofolio/main/[id]/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { ViewPortofolio } from "@/app_modules/katalog/portofolio";
|
||||
import { getOnePortofolio } from "@/app_modules/katalog/portofolio/fun/get_one_portofolio";
|
||||
|
||||
export default async function Page({params}: {params: {id: string}}) {
|
||||
|
||||
const getPorto = await getOnePortofolio(params.id)
|
||||
// console.log(getPorto)
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* {JSON.stringify(getPorto)} */}
|
||||
<ViewPortofolio dataPorto={getPorto as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user