@popmenu/ordering-ui 0.120.0 → 0.121.2

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
@@ -949,6 +949,8 @@ var getBorder = function (theme) { return function (props) {
949
949
  }
950
950
  return borderColor;
951
951
  }; };
952
+ // using `any` here is a bit of cheating but it doesn't matter since this doesn't depend on
953
+ // any component-specific props
952
954
  styles.makeStyles(function (theme) { return ({
953
955
  root: {
954
956
  background: getBackground(theme),
@@ -1135,6 +1137,7 @@ var useLinkStyles = styles.makeStyles(function (theme) { return ({
1135
1137
  },
1136
1138
  }); });
1137
1139
 
1140
+ // eslint-disable-next-line react/display-name -- false positive
1138
1141
  var Link = React.forwardRef(function (props, ref) {
1139
1142
  var children = props.children, muiProps = __rest(props, ["children"]);
1140
1143
  var classes = useLinkStyles(props);
@@ -1671,7 +1674,11 @@ var DishCheckoutCard = function (props) {
1671
1674
  if (nested === void 0) { nested = false; }
1672
1675
  return groups.map(function (group) {
1673
1676
  // Get all selected modifiers for this group
1674
- var modifiers = group.selectedModifiers.map(function (modifier) { return modifier.modifierName; }).join(', ');
1677
+ var modifiers = group.selectedModifiers
1678
+ .map(function (modifier) {
1679
+ return modifier.quantity > 1 ? modifier.modifierName + " \u00D7 " + modifier.quantity : modifier.modifierName;
1680
+ })
1681
+ .join(', ');
1675
1682
  // Render nested groups recursively
1676
1683
  var nestedGroups = group.selectedModifiers.flatMap(function (modifier) {
1677
1684
  var _a;