update card in dashboard

This commit is contained in:
wayanrivan
2025-05-10 19:38:12 +07:00
parent 2a1c715285
commit e09e86bae3

View File

@ -266,14 +266,14 @@ const DashboardHomePage = () => {
/> />
<Card <Card
title="Total Cash-in" title="Total Cash-in"
total={responseStatisticCard?.data.total_cash_in ?? 0} total={parseFloat((responseStatisticCard?.data.total_cash_in ?? 0).toFixed(2)) ?? 0}
growth={parseFloat((responseStatisticCard?.data?.cash_in_last_week.percent ?? 0).toFixed(2)) ?? 0} growth={parseFloat((responseStatisticCard?.data?.cash_in_last_week.percent ?? 0).toFixed(2)) ?? 0}
surplus={responseStatisticCard?.data.cash_in_last_week.surplus ?? false} surplus={responseStatisticCard?.data.cash_in_last_week.surplus ?? false}
icon="test" icon="test"
/> />
<Card <Card
title="Total Cash-out" title="Total Cash-out"
total={responseStatisticCard?.data.total_cash_out ?? 0} total={parseFloat((responseStatisticCard?.data.out ?? 0).toFixed(2)) ?? 0}
growth={parseFloat((responseStatisticCard?.data?.cash_out_last_week.percent ?? 0).toFixed(2)) ?? 0} growth={parseFloat((responseStatisticCard?.data?.cash_out_last_week.percent ?? 0).toFixed(2)) ?? 0}
surplus={responseStatisticCard?.data.cash_out_last_week.surplus ?? false} surplus={responseStatisticCard?.data.cash_out_last_week.surplus ?? false}
icon="test" icon="test"