fix: change key display product
This commit is contained in:
parent
fdd123bb9f
commit
53a4108e09
|
@ -104,13 +104,13 @@ export const Product = observer(() => {
|
||||||
<Card
|
<Card
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: `Are you sure buy ${item.name}?`,
|
title: `Are you sure buy ${item.product_name}?`,
|
||||||
icon: <MoneyCollectOutlined/>,
|
icon: <MoneyCollectOutlined/>,
|
||||||
okText: "Confirm",
|
okText: "Confirm",
|
||||||
cancelText: "Cancel",
|
cancelText: "Cancel",
|
||||||
okType: "primary",
|
okType: "primary",
|
||||||
onOk() {
|
onOk() {
|
||||||
handleBuyProduct(item.code)
|
handleBuyProduct(item.product_code)
|
||||||
},
|
},
|
||||||
onCancel() {
|
onCancel() {
|
||||||
console.log("Cancel");
|
console.log("Cancel");
|
||||||
|
@ -119,13 +119,13 @@ export const Product = observer(() => {
|
||||||
}}
|
}}
|
||||||
style={{cursor: "pointer"}}
|
style={{cursor: "pointer"}}
|
||||||
>
|
>
|
||||||
<span style={{color: "black"}}>{item.name}</span>
|
<span style={{color: "black"}}>{item.product_name}</span>
|
||||||
<br/>
|
<br/>
|
||||||
<span style={{color: "grey", fontSize: 10}}>
|
<span style={{color: "grey", fontSize: 10}}>
|
||||||
{new Intl.NumberFormat("id-ID", {
|
{new Intl.NumberFormat("id-ID", {
|
||||||
style: "currency",
|
style: "currency",
|
||||||
currency: "IDR",
|
currency: "IDR",
|
||||||
}).format(item?.currentPrice?.mark_up_price)}
|
}).format(item?.price)}
|
||||||
</span>
|
</span>
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user