fix
Desc: - Perubahan minor Issue: Di server master bidang bisnis tidak terpanggil
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
import { myConsole } from "@/app/fun/my_console";
|
||||
import { CreatePortofolio } from "@/app_modules/katalog/portofolio";
|
||||
import { getBidangBisnis } from "@/app_modules/katalog/portofolio/fun/get_list_bidang_bisnis";
|
||||
import { getBidangBisnis } from "@/app_modules/katalog/portofolio/fun/get_bidang_bisnis";
|
||||
import { getProfile } from "@/app_modules/katalog/profile";
|
||||
|
||||
export default async function Page() {
|
||||
const bidangBisnis = await getBidangBisnis();
|
||||
const bidangBisnis = await getBidangBisnis()
|
||||
const id = await getProfile();
|
||||
const profileId = id?.id;
|
||||
// console.log(bidangBisnis)
|
||||
|
||||
return (
|
||||
<>
|
||||
<CreatePortofolio data={bidangBisnis} profileId={profileId} />
|
||||
<CreatePortofolio bidangBisnis={bidangBisnis as any} profileId={profileId} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
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