update dashboard

This commit is contained in:
wayanrivan
2025-06-04 16:52:52 +07:00
parent 4291bf85b1
commit ba786a8d45

View File

@ -79,29 +79,29 @@ const TransactionValue = ({ startdate, enddate }: Props) => {
case "M":
type = "Withdrawal Agent";
break;
case 'O':
type = 'TOP UP AGENT';
case 'O':
type = 'Top Up Agent';
break;
case 'S':
type = 'TRANSFER P24';
case 'S':
type = 'Transfer P24';
break;
case 'I':
type = 'WIJTDRAW MERCHANT';
case 'I':
type = 'Withdraw Merchant';
break;
case 'D':
type = 'DONATION';
case 'D':
type = 'Donation';
break;
case 'F':
type = 'FEE';
case 'F':
type = 'Fee';
break;
case 'V':
type = 'REVERSAL';
case 'V':
type = 'Reversal';
break;
case 'C':
type = 'CASHBACK CASH';
case 'C':
type = 'Cashback Cash';
break;
case 'H':
type = 'CASHBACK POINT';
case 'H':
type = 'Cashback Point';
break;
default:
type = "Unknown";
@ -136,7 +136,8 @@ const TransactionValue = ({ startdate, enddate }: Props) => {
></div>
</div>
</div>
<span className="w-14 text-right text-sm text-gray-700">{new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(item.value)}{item.unit}</span>
<span className="w-24 text-right text-sm text-gray-700 break-words">
{new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(item.value)}{item.unit}</span>
</div>
))}
</div>