style: adjust width column payback
This commit is contained in:
parent
fa3fff13f6
commit
4facb71d4f
|
@ -51,36 +51,38 @@ export const Payback = observer(() => {
|
||||||
title: "Amount",
|
title: "Amount",
|
||||||
dataIndex: "amount",
|
dataIndex: "amount",
|
||||||
key: "amount",
|
key: "amount",
|
||||||
|
width: '20%',
|
||||||
render: (text) =>
|
render: (text) =>
|
||||||
new Intl.NumberFormat("id-ID", {
|
new Intl.NumberFormat("id-ID", {
|
||||||
style: "currency",
|
style: "currency",
|
||||||
currency: "IDR",
|
currency: "IDR",
|
||||||
}).format(text),
|
}).format(text),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Action",
|
title: "Action",
|
||||||
dataIndex: "amount",
|
dataIndex: "amount",
|
||||||
key: "action",
|
key: "action",
|
||||||
render: (text, record) => (
|
width: '10%',
|
||||||
<Space size="middle">
|
render: (text, record) => (
|
||||||
<Button
|
<Space size="middle">
|
||||||
onClick={async () => {
|
<Button
|
||||||
await handleAction(record, "accept");
|
onClick={async () => {
|
||||||
}}
|
await handleAction(record, "accept");
|
||||||
icon={<CheckCircleOutlined/>}
|
}}
|
||||||
style={{
|
icon={<CheckCircleOutlined/>}
|
||||||
backgroundColor: "#1bb91d",
|
style={{
|
||||||
color: "#fff",
|
backgroundColor: "#1bb91d",
|
||||||
borderColor: "#1bb91d",
|
color: "#fff",
|
||||||
}}
|
borderColor: "#1bb91d",
|
||||||
>
|
}}
|
||||||
Accept
|
>
|
||||||
</Button>
|
Accept
|
||||||
<Button
|
</Button>
|
||||||
onClick={async () => {
|
<Button
|
||||||
await handleAction(record, "reject");
|
onClick={async () => {
|
||||||
}}
|
await handleAction(record, "reject");
|
||||||
icon={<CloseOutlined/>}
|
}}
|
||||||
|
icon={<CloseOutlined/>}
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: "#ff1c1c",
|
backgroundColor: "#ff1c1c",
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user