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