feat: add currency support to CardReport and update dashboard data structure

This commit is contained in:
fredy.siswanto
2025-03-03 21:17:46 +07:00
parent 030de2c2dd
commit 1538869e49
5 changed files with 28 additions and 24 deletions
+10 -5
View File
@@ -2,20 +2,25 @@ import { DoctorIcon } from '~/components/icons/doctor'
import { GraphIcon } from '~/components/icons/graph'
export const REPORT = [
{ title: 'Total Transaksi', amount: 10_800_000_000, icon: GraphIcon },
{ title: 'Transaksi Tertagih', amount: 2_000_000, icon: GraphIcon },
{ title: 'Transaksi Tertagih', amount: 2_000_000, icon: GraphIcon },
{ title: 'Total User', amount: 10_800, icon: GraphIcon },
{ title: '⁠Total User Subscribe', amount: 5000, icon: GraphIcon },
{
title: 'Total Nilai Subscribe',
amount: 250_000_000,
icon: GraphIcon,
currency: 'Rp. ',
},
]
export const HISTORY = [
{
title: 'Total Kunjungan',
title: 'Total Content Biasa',
amount: 2890,
icon: GraphIcon,
counter: [2190, 700],
},
{
title: 'Total User Memesan',
title: 'Total Content Premium',
amount: 274,
icon: DoctorIcon,
counter: [211, 54],