From 78a51ca60a77874637b244011c57f707c3c4fe5f Mon Sep 17 00:00:00 2001 From: sazzadulalambd Date: Fri, 15 May 2026 19:18:07 +0600 Subject: [PATCH] feat: replace ROI metric with total bike count and add item counts to investment detail tabs --- src/app/investor/investments/[id]/page.tsx | 30 +++++++++++++++------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/src/app/investor/investments/[id]/page.tsx b/src/app/investor/investments/[id]/page.tsx index 0ae2825..0f5c7d4 100644 --- a/src/app/investor/investments/[id]/page.tsx +++ b/src/app/investor/investments/[id]/page.tsx @@ -97,7 +97,7 @@ export default function InvestorInvestmentDetailPage({ params }: { params: Promi return (
-
+
@@ -156,26 +156,38 @@ export default function InvestorInvestmentDetailPage({ params }: { params: Promi
- +
-

ROI

+

Total Bikes

-

{investment.expectedRoi}%

+

{demoBikes.length}

+
- {['overview', 'bikes', 'transactions', 'statement'].map((tab) => ( + {[ + { key: 'overview', label: 'Overview', count: null }, + { key: 'bikes', label: 'Bikes', count: demoBikes.length }, + + { key: 'transactions', label: 'Transactions', count: demoTransactions.length }, + { key: 'statement', label: 'Statement', count: null }, + ].map((tab) => ( ))}