feat
Desc: - Fitur crowdfunding - Fitur Investasi - Fitur tambah investasi No issue
This commit is contained in:
8
src/app/dev/investasi/main/layout.tsx
Normal file
8
src/app/dev/investasi/main/layout.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { LayoutMainInvestasi } from "@/app_modules/investasi";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({children}: {children: React.ReactNode}) {
|
||||
return <>
|
||||
<LayoutMainInvestasi>{children}</LayoutMainInvestasi>
|
||||
</>
|
||||
}
|
||||
24
src/app/dev/investasi/main/page.tsx
Normal file
24
src/app/dev/investasi/main/page.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { MainInvestasi } from "@/app_modules/investasi";
|
||||
import { getListAllInvestasi } from "@/app_modules/investasi/fun/get_list_all_investasi";
|
||||
import getPembagianDeviden from "@/app_modules/investasi/fun/get_pembagian_deviden";
|
||||
import getPencarianInvestor from "@/app_modules/investasi/fun/get_pencarian_investor";
|
||||
import getPeriodeDeviden from "@/app_modules/investasi/fun/get_periode_deviden";
|
||||
|
||||
export default async function Page() {
|
||||
const data = await getListAllInvestasi()
|
||||
const pencarianInvestor = await getPencarianInvestor();
|
||||
const periodeDeviden = await getPeriodeDeviden();
|
||||
const pembagianDeviden = await getPembagianDeviden();
|
||||
|
||||
// console.log(data)
|
||||
return <>
|
||||
<MainInvestasi
|
||||
listData={data as any}
|
||||
pencarianInvestor={pencarianInvestor as any}
|
||||
periodeDeviden={periodeDeviden as any}
|
||||
pembagianDeviden={pembagianDeviden as any}
|
||||
|
||||
/>
|
||||
</>
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user