mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 21:44: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">
|
||||
<RecentFunds data={latestDeals} />
|
||||
<div className="mt-5 flex justify-center">
|
||||
{deals?.length}
|
||||
{deals && deals.length > 5 ? (
|
||||
<Modal
|
||||
data={deals.map((item) => {
|
||||
return {
|
||||
date: item.created_time,
|
||||
name: item.username,
|
||||
name: item.project_name,
|
||||
amount: item.deal_amount,
|
||||
status: item.deal_status,
|
||||
logoURL: Array.isArray(item.avatar_url) ? item.avatar_url[0] : item.avatar_url,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user