update card in dashboard
This commit is contained in:
@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user