feat: fix amount property typo and format numbers for dashboard reports

This commit is contained in:
Ardeman
2025-02-24 08:04:09 +08:00
parent e484af6e71
commit e11f007eb1
5 changed files with 17 additions and 11 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
export const REPORT = [
{ title: 'Total Transaksi', amound: '10.800.000.000', icon: 'money' },
{ title: 'Transaksi Tertagih', amound: 2_000_000, icon: 'money' },
{ title: 'Transaksi Tertagih', amound: 2_000_000, icon: 'money' },
{ title: 'Total Transaksi', amount: 10_800_000_000, icon: 'money' },
{ title: 'Transaksi Tertagih', amount: 2_000_000, icon: 'money' },
{ title: 'Transaksi Tertagih', amount: 2_000_000, icon: 'money' },
]
export const HISTORY = [
+4 -4
View File
@@ -22,12 +22,12 @@ export const DashboardPage = () => {
</section>
<div className="mb-5 grid grid-cols-3 gap-4">
{REPORT.map((report, index) => (
{REPORT.map(({ title, amount }, index) => (
<CardReport
key={index}
title={report.title}
amound={report.amound}
></CardReport>
title={title}
amount={amount}
/>
))}
</div>