mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-19 05:54:06 +01:00
feat: update deal data mapping in Portfolio component to use project name instead of username
This commit is contained in:
parent
00c4080b21
commit
b2837dd4a8
@ -247,13 +247,12 @@ export default async function Portfolio({ params }: { params: { uid: string } })
|
|||||||
<CardContent className="mt-5 grid grid-flow-row-dense">
|
<CardContent className="mt-5 grid grid-flow-row-dense">
|
||||||
<RecentFunds data={latestDeals} />
|
<RecentFunds data={latestDeals} />
|
||||||
<div className="mt-5 flex justify-center">
|
<div className="mt-5 flex justify-center">
|
||||||
{deals?.length}
|
|
||||||
{deals && deals.length > 5 ? (
|
{deals && deals.length > 5 ? (
|
||||||
<Modal
|
<Modal
|
||||||
data={deals.map((item) => {
|
data={deals.map((item) => {
|
||||||
return {
|
return {
|
||||||
date: item.created_time,
|
date: item.created_time,
|
||||||
name: item.username,
|
name: item.project_name,
|
||||||
amount: item.deal_amount,
|
amount: item.deal_amount,
|
||||||
status: item.deal_status,
|
status: item.deal_status,
|
||||||
logoURL: Array.isArray(item.avatar_url) ? item.avatar_url[0] : item.avatar_url,
|
logoURL: Array.isArray(item.avatar_url) ? item.avatar_url[0] : item.avatar_url,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user