This commit is contained in:
wayanrivan
2025-07-21 09:56:59 +07:00
parent 5d58d15b29
commit 1ffa8115be

View File

@ -308,7 +308,11 @@ const DetailTransaction = () => {
<div>
<p className="text-sm text-gray-500">Token KWh EDTL </p>
<p className="font-medium">
{edtl.tokenDec ?? "-"}
{(edtl.tokenDec ?? "-")
.match(/.{1,4}/g) // bagi per 4 karakter
?.join(" ") // gabungkan dengan spasi
}
</p>
</div>
<div>
@ -335,6 +339,14 @@ const DetailTransaction = () => {
{edtl.customerAddr ?? "-"}
</p>
</div>
<div>
<p className="text-sm text-gray-500">Amount</p>
<p className="font-medium">
{edtl.customerPaymentAmount != null
? new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(edtl.customerPaymentAmount)
: "-"}
</p>
</div>
<div>
<p className="text-sm text-gray-500">Provider Type</p>