From ead2d51fd8ae9aef4e6d0d83bae6dcfc3af92fab Mon Sep 17 00:00:00 2001 From: ilham Date: Mon, 20 Dec 2021 13:07:21 +0700 Subject: [PATCH] fix: get product --- src/component/ProductComponent.js | 38 +++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/component/ProductComponent.js b/src/component/ProductComponent.js index 5ec507a..77cd3b2 100644 --- a/src/component/ProductComponent.js +++ b/src/component/ProductComponent.js @@ -43,32 +43,32 @@ export const ProductComponent = observer((props) => { }, { title: "Produk", - dataIndex: "name", + dataIndex: ["name"], key: "name", }, { title: "Harga Beli", - dataIndex: "price", - key: "price", + dataIndex: ["currentPrice","price"], + key: ["currentPrice","price"], }, { title: "Harga Jual", - dataIndex: "basePrice", - key: "basePrice", - }, - { - title: "Gangguan", - dataIndex: "status", - key: "status", - render: (text, record) => ( - - {capitalize(record?.status)} - - ), + dataIndex: ["currentPrice","mark_up_price"], + key: ["currentPrice","mark_up_price"], }, + // { + // title: "Gangguan", + // dataIndex: "status", + // key: "status", + // render: (text, record) => ( + // + // {capitalize(record?.status)} + // + // ), + // }, { title: "Tersedia", dataIndex: "tersedia", @@ -78,7 +78,7 @@ export const ProductComponent = observer((props) => { color={record?.status === "ACTIVE" ? "blue" : "#E3E8EE"} style={{color: "#4F566B"}} > - {record?.status === "ACTIVE" ? " Ya" : "Tidak"} + {record?.status === "ACTIVE" ? " Tersedia" : "Tidak"} ), }