From dfc3ea466fbc6c63e0a293aab478a06681d04211 Mon Sep 17 00:00:00 2001 From: caturbgs Date: Fri, 17 Dec 2021 01:49:38 +0700 Subject: [PATCH] feat: style column --- src/component/SupplierComponent.js | 38 +++++++++++++++++------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/src/component/SupplierComponent.js b/src/component/SupplierComponent.js index 9ab1fa8..70f196d 100644 --- a/src/component/SupplierComponent.js +++ b/src/component/SupplierComponent.js @@ -58,38 +58,42 @@ export const SupplierComponent = observer((props) => { title: "Kode", dataIndex: "code", key: "code", + width: "5%", }, { title: "Saldo", - dataIndex: ["coa","amount"], - key: ["coa","amount"], + dataIndex: ["coa", "amount"], + key: ["coa", "amount"], + width: "20%", }, { title: "Status", dataIndex: "status", key: "status", + width: "5%", render: (text, record) => ( - - {record?.status === true ? " ACTIVE" : "INACTIVE"} - + + {record?.status === true ? " ACTIVE" : "INACTIVE"} + ), }, { title: "Action", key: "action", + width: "20%", render: (text, record) => ( - - - - + + + + ), },