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 <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>