update
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user