style: adjust number to currency format

This commit is contained in:
caturbgs
2021-12-22 16:57:42 +07:00
parent aa2c658f69
commit 119fa6d0bd
7 changed files with 41 additions and 29 deletions

View File

@@ -48,9 +48,14 @@ export const Payback = observer(() => {
),
},
{
title: "Amount",
dataIndex: "amount",
key: "amount",
title: "Amount",
dataIndex: "amount",
key: "amount",
render: (text) =>
new Intl.NumberFormat("id-ID", {
style: "currency",
currency: "IDR",
}).format(text),
},
{
title: "Action",

View File

@@ -56,6 +56,11 @@ export const PaybackFromUser = observer(() => {
title: "Amount",
dataIndex: "amount",
key: "amount",
render: (text) =>
new Intl.NumberFormat("id-ID", {
style: "currency",
currency: "IDR",
}).format(text),
},
];