Commit 4e499392 authored by Trisno's avatar Trisno

bisa order via change quantity text input

parent 4aff7651
......@@ -6,7 +6,16 @@ import ActionType from '../redux/globalActionType';
class Item extends React.Component {
handleChangeQuantity = (item, quantity) => {
this.props.changeQuantity({ item: item, quantity: quantity })
const order_item = {
id: item.id,
code: item.code,
name: item.name,
description: item.description,
note: 'jangan garing',
image: item.image,
price: parseInt(item.price),
}
this.props.changeQuantity({ item: order_item, quantity: quantity })
}
render() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment