update dashboard
This commit is contained in:
@ -43,6 +43,7 @@ const TransactionPieChart = ({ startdate, enddate }: Props) => {
|
||||
{ name: 'Purchase', value: parseFloat((responseTransactionValue?.data?.P ?? 0).toFixed(2)), color: '#baf7c5' },
|
||||
{ name: 'Withdraw', value: parseFloat((responseTransactionValue?.data?.W ?? 0).toFixed(2)), color: '#f56565' },
|
||||
{ name: 'Top Up Partner', value: parseFloat((responseTransactionValue?.data?.N ?? 0).toFixed(2)), color: '#f7fa52' },
|
||||
{ name: 'Reward', value: parseFloat((responseTransactionValue?.data?.E ?? 0).toFixed(2)), color: '#f7fa52' },
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
@ -64,6 +64,9 @@ const TransactionValue = ({ startdate, enddate }: Props) => {
|
||||
case "N":
|
||||
type = "Top Up Partner";
|
||||
break;
|
||||
case "E":
|
||||
type = "Reward";
|
||||
break;
|
||||
default:
|
||||
type = "Unknown";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user