feat: fix amount property typo and format numbers for dashboard reports
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user