ordering-ui-external 14.1.49 → 14.1.51
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/_bundles/{7.ordering-ui.697d19ddfcc29dfbeb52.js → 7.ordering-ui.351da122a9e8d0c38404.js} +1 -1
- package/_bundles/{ordering-ui.697d19ddfcc29dfbeb52.js → ordering-ui.351da122a9e8d0c38404.js} +2 -2
- package/_modules/themes/five/src/components/ProductItemAccordion/index.js +4 -4
- package/package.json +1 -1
- package/src/themes/five/src/components/ProductItemAccordion/index.js +2 -2
- /package/_bundles/{0.ordering-ui.697d19ddfcc29dfbeb52.js → 0.ordering-ui.351da122a9e8d0c38404.js} +0 -0
- /package/_bundles/{1.ordering-ui.697d19ddfcc29dfbeb52.js → 1.ordering-ui.351da122a9e8d0c38404.js} +0 -0
- /package/_bundles/{2.ordering-ui.697d19ddfcc29dfbeb52.js → 2.ordering-ui.351da122a9e8d0c38404.js} +0 -0
- /package/_bundles/{4.ordering-ui.697d19ddfcc29dfbeb52.js → 4.ordering-ui.351da122a9e8d0c38404.js} +0 -0
- /package/_bundles/{5.ordering-ui.697d19ddfcc29dfbeb52.js → 5.ordering-ui.351da122a9e8d0c38404.js} +0 -0
- /package/_bundles/{6.ordering-ui.697d19ddfcc29dfbeb52.js → 6.ordering-ui.351da122a9e8d0c38404.js} +0 -0
- /package/_bundles/{7.ordering-ui.697d19ddfcc29dfbeb52.js.LICENSE.txt → 7.ordering-ui.351da122a9e8d0c38404.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.697d19ddfcc29dfbeb52.js → 8.ordering-ui.351da122a9e8d0c38404.js} +0 -0
- /package/_bundles/{9.ordering-ui.697d19ddfcc29dfbeb52.js → 9.ordering-ui.351da122a9e8d0c38404.js} +0 -0
- /package/_bundles/{ordering-ui.697d19ddfcc29dfbeb52.js.LICENSE.txt → ordering-ui.351da122a9e8d0c38404.js.LICENSE.txt} +0 -0
|
@@ -220,14 +220,14 @@ var ProductItemAccordionUI = function ProductItemAccordionUI(props) {
|
|
|
220
220
|
className: "ingredient",
|
|
221
221
|
key: ingredient.id
|
|
222
222
|
}, /*#__PURE__*/_react.default.createElement("span", null, t('NO', 'No'), " ", ingredient.name));
|
|
223
|
-
})), productInfo.options.length > 0 && /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, null, productInfo.options.
|
|
224
|
-
return a.rank - b.rank;
|
|
225
|
-
}).map(function (option) {
|
|
223
|
+
})), productInfo.options.length > 0 && /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, null, productInfo.options.map(function (option) {
|
|
226
224
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
227
225
|
key: option.id
|
|
228
226
|
}, /*#__PURE__*/_react.default.createElement("p", null, option.name), /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, {
|
|
229
227
|
className: "suboption"
|
|
230
|
-
}, option.suboptions.
|
|
228
|
+
}, option.suboptions.sort(function (a, b) {
|
|
229
|
+
return a.rank - b.rank;
|
|
230
|
+
}).map(function (suboption) {
|
|
231
231
|
var _suboption$half_price;
|
|
232
232
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
233
233
|
key: suboption.id
|
package/package.json
CHANGED
|
@@ -300,11 +300,11 @@ const ProductItemAccordionUI = (props) => {
|
|
|
300
300
|
)}
|
|
301
301
|
{productInfo.options.length > 0 && (
|
|
302
302
|
<ProductOptionsList>
|
|
303
|
-
{productInfo.options.
|
|
303
|
+
{productInfo.options.map(option => (
|
|
304
304
|
<li key={option.id}>
|
|
305
305
|
<p>{option.name}</p>
|
|
306
306
|
<ProductOptionsList className='suboption'>
|
|
307
|
-
{option.suboptions.map(suboption => (
|
|
307
|
+
{option.suboptions.sort((a, b) => a.rank - b.rank).map(suboption => (
|
|
308
308
|
<li key={suboption.id}>
|
|
309
309
|
<span>
|
|
310
310
|
{getFormattedSubOptionName({
|
/package/_bundles/{0.ordering-ui.697d19ddfcc29dfbeb52.js → 0.ordering-ui.351da122a9e8d0c38404.js}
RENAMED
|
File without changes
|
/package/_bundles/{1.ordering-ui.697d19ddfcc29dfbeb52.js → 1.ordering-ui.351da122a9e8d0c38404.js}
RENAMED
|
File without changes
|
/package/_bundles/{2.ordering-ui.697d19ddfcc29dfbeb52.js → 2.ordering-ui.351da122a9e8d0c38404.js}
RENAMED
|
File without changes
|
/package/_bundles/{4.ordering-ui.697d19ddfcc29dfbeb52.js → 4.ordering-ui.351da122a9e8d0c38404.js}
RENAMED
|
File without changes
|
/package/_bundles/{5.ordering-ui.697d19ddfcc29dfbeb52.js → 5.ordering-ui.351da122a9e8d0c38404.js}
RENAMED
|
File without changes
|
/package/_bundles/{6.ordering-ui.697d19ddfcc29dfbeb52.js → 6.ordering-ui.351da122a9e8d0c38404.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/_bundles/{8.ordering-ui.697d19ddfcc29dfbeb52.js → 8.ordering-ui.351da122a9e8d0c38404.js}
RENAMED
|
File without changes
|
/package/_bundles/{9.ordering-ui.697d19ddfcc29dfbeb52.js → 9.ordering-ui.351da122a9e8d0c38404.js}
RENAMED
|
File without changes
|