update add new kind N
This commit is contained in:
@ -42,6 +42,7 @@ const TransactionPieChart = ({ startdate, enddate }: Props) => {
|
||||
{ name: 'Topup', value: parseFloat((responseTransactionValue?.data?.U ?? 0).toFixed(2)), color: '#9f7aea' },
|
||||
{ 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' },
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
@ -61,6 +61,9 @@ const TransactionValue = ({ startdate, enddate }: Props) => {
|
||||
case "R":
|
||||
type = "Return";
|
||||
break;
|
||||
case "N":
|
||||
type = "Top Up Partner";
|
||||
break;
|
||||
default:
|
||||
type = "Unknown";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user