Merge branch 'develop' into 'devops-staging'

fix: change key display product

See merge request empatnusabangsa/ppob/ppob-frontend!14
This commit is contained in:
Catur Bagaskara 2021-12-22 17:20:49 +00:00
commit 47eb8df08f

View File

@ -104,13 +104,13 @@ export const Product = observer(() => {
<Card
onClick={() => {
Modal.confirm({
title: `Are you sure buy ${item.name}?`,
title: `Are you sure buy ${item.product_name}?`,
icon: <MoneyCollectOutlined/>,
okText: "Confirm",
cancelText: "Cancel",
okType: "primary",
onOk() {
handleBuyProduct(item.code)
handleBuyProduct(item.product_code)
},
onCancel() {
console.log("Cancel");
@ -119,13 +119,13 @@ export const Product = observer(() => {
}}
style={{cursor: "pointer"}}
>
<span style={{color: "black"}}>{item.name}</span>
<span style={{color: "black"}}>{item.product_name}</span>
<br/>
<span style={{color: "grey", fontSize: 10}}>
{new Intl.NumberFormat("id-ID", {
style: "currency",
currency: "IDR",
}).format(item?.currentPrice?.mark_up_price)}
}).format(item?.price)}
</span>
</Card>
</Col>