Merge branch 'develop' into 'devops-staging'
fix: change key display product See merge request empatnusabangsa/ppob/ppob-frontend!14
This commit is contained in:
commit
c0d4317a6c
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user