Bursa Investasi
# feat: - Tampilan portofolio selesai - Hapus investasi - Function get data publish ### no issue
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { funGetUserProfile } from "@/app_modules/fun/get_user_profile";
|
||||
import { DetailInvestasi } from "@/app_modules/investasi";
|
||||
import getOneInvestasiById from "@/app_modules/investasi/fun/get_one_investasi_by_id";
|
||||
|
||||
export default async function Page({params}: {params: {id: string}}) {
|
||||
const dataInvestasi = await getOneInvestasiById(params.id)
|
||||
const dataUser = await funGetUserProfile(dataInvestasi?.authorId as any)
|
||||
return<>
|
||||
<DetailInvestasi id={params.id}/>
|
||||
<DetailInvestasi dataInvestasi={dataInvestasi as any} dataUser={dataUser as any}/>
|
||||
</>
|
||||
}
|
||||
Reference in New Issue
Block a user