feat
Desc: - Fitur portofolio
This commit is contained in:
8
src/app/dev/katalog/portofolio/create/layout.tsx
Normal file
8
src/app/dev/katalog/portofolio/create/layout.tsx
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import { PortofolioLayout } from "@/app_modules/katalog/portofolio";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
|
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||||
|
return<>
|
||||||
|
<PortofolioLayout>{children}</PortofolioLayout>
|
||||||
|
</>
|
||||||
|
}
|
||||||
17
src/app/dev/katalog/portofolio/create/page.tsx
Normal file
17
src/app/dev/katalog/portofolio/create/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import { myConsole } from "@/app/fun/my_console";
|
||||||
|
import { CreatePortofolio } from "@/app_modules/katalog/portofolio";
|
||||||
|
import { getBidangBisnis } from "@/app_modules/katalog/portofolio/api/get-bidang-bisnis";
|
||||||
|
import { getProfile } from "@/app_modules/katalog/profile";
|
||||||
|
|
||||||
|
export default async function Page() {
|
||||||
|
const bidangBisnis = await getBidangBisnis();
|
||||||
|
const id = await getProfile();
|
||||||
|
const profileId = id?.id;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{JSON.stringify(profileId)}
|
||||||
|
<CreatePortofolio data={bidangBisnis} profileId={profileId} />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user