@popmenu/ordering-ui 0.73.0 → 0.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js
CHANGED
|
@@ -1516,7 +1516,7 @@ var useDishCheckoutCardStyles = styles.makeStyles(function (theme) { return ({
|
|
|
1516
1516
|
padding: theme.spacing(2, 0),
|
|
1517
1517
|
display: 'flex',
|
|
1518
1518
|
flexDirection: 'column',
|
|
1519
|
-
|
|
1519
|
+
width: '100%',
|
|
1520
1520
|
gridGap: theme.spacing(2),
|
|
1521
1521
|
border: '1px',
|
|
1522
1522
|
},
|
|
@@ -1556,7 +1556,7 @@ var useDishCheckoutCardStyles = styles.makeStyles(function (theme) { return ({
|
|
|
1556
1556
|
}); });
|
|
1557
1557
|
|
|
1558
1558
|
var DishCheckoutCard = function (props) {
|
|
1559
|
-
var id = props.id, name = props.name, quantity = props.quantity, modifiers = props.modifiers, onDelete = props.onDelete, onEdit = props.onEdit, onChange = props.onChange, price = props.price;
|
|
1559
|
+
var id = props.id, name = props.name, quantity = props.quantity, modifiers = props.modifiers, onDelete = props.onDelete, onEdit = props.onEdit, onChange = props.onChange, price = props.price, specialInstructions = props.specialInstructions;
|
|
1560
1560
|
var classes = useDishCheckoutCardStyles(props);
|
|
1561
1561
|
var _a = React.useState(false), open = _a[0], setOpen = _a[1];
|
|
1562
1562
|
return (React__default['default'].createElement(core.Box, { className: classes.root },
|
|
@@ -1567,7 +1567,11 @@ var DishCheckoutCard = function (props) {
|
|
|
1567
1567
|
modifiers.map(function (modifier, i) { return (React__default['default'].createElement(Typography, { key: i, variant: "body2" },
|
|
1568
1568
|
modifier[0],
|
|
1569
1569
|
": ",
|
|
1570
|
-
modifier[1])); })
|
|
1570
|
+
modifier[1])); }),
|
|
1571
|
+
specialInstructions && React__default['default'].createElement(Typography, { variant: "body2" },
|
|
1572
|
+
"\"",
|
|
1573
|
+
specialInstructions,
|
|
1574
|
+
"\"")),
|
|
1571
1575
|
React__default['default'].createElement(core.Box, { display: "flex", gridGap: 1, height: "100%" },
|
|
1572
1576
|
React__default['default'].createElement(Button, { variant: "text", onClick: onEdit }, "Edit"),
|
|
1573
1577
|
React__default['default'].createElement(IconButton, { onClick: onDelete },
|