ordering-ui-external 4.0.1 → 4.0.3
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/_modules/themes/five/src/components/BusinessController/index.js +2 -6
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +1 -1
- package/package.json +1 -1
- package/src/themes/five/src/components/BusinessController/index.js +1 -2
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +1 -1
|
@@ -116,13 +116,9 @@ var BusinessControllerUI = function BusinessControllerUI(props) {
|
|
|
116
116
|
// }
|
|
117
117
|
|
|
118
118
|
var handleBusinessClick = function handleBusinessClick(e) {
|
|
119
|
-
var _favoriteRef$current
|
|
119
|
+
var _favoriteRef$current;
|
|
120
120
|
if (favoriteRef !== null && favoriteRef !== void 0 && (_favoriteRef$current = favoriteRef.current) !== null && _favoriteRef$current !== void 0 && _favoriteRef$current.contains(e.target)) return;
|
|
121
|
-
|
|
122
|
-
var _menu$products;
|
|
123
|
-
return (menu === null || menu === void 0 ? void 0 : menu.enabled) && (menu === null || menu === void 0 ? void 0 : (_menu$products = menu.products) === null || _menu$products === void 0 ? void 0 : _menu$products.length) > 0;
|
|
124
|
-
}).length;
|
|
125
|
-
if (onPreorderBusiness && (!isBusinessOpen || !hasMenu)) onPreorderBusiness(business);else handleClick(business);
|
|
121
|
+
if (onPreorderBusiness && !isBusinessOpen) onPreorderBusiness(business);else handleClick(business);
|
|
126
122
|
};
|
|
127
123
|
var handleChangeFavorite = function handleChangeFavorite() {
|
|
128
124
|
if (auth) {
|
|
@@ -263,7 +263,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
263
263
|
position: "web_business_listing"
|
|
264
264
|
}), (windowSize.width < 576 || (configs === null || configs === void 0 ? void 0 : (_configs$business_lis = configs.business_listing_hide_image) === null || _configs$business_lis === void 0 ? void 0 : _configs$business_lis.value) !== '1' && !isChew) && /*#__PURE__*/_react.default.createElement(_styles.BusinessBanner, null, windowSize.width < 576 && /*#__PURE__*/_react.default.createElement(_OrderContextUI.OrderContextUI, {
|
|
265
265
|
isBusinessList: true,
|
|
266
|
-
hideHero:
|
|
266
|
+
hideHero: (configs === null || configs === void 0 ? void 0 : (_configs$business_lis2 = configs.business_listing_hide_image) === null || _configs$business_lis2 === void 0 ? void 0 : _configs$business_lis2.value) !== '1' && !isChew && !hideHero
|
|
267
267
|
}), (configs === null || configs === void 0 ? void 0 : (_configs$business_lis3 = configs.business_listing_hide_image) === null || _configs$business_lis3 === void 0 ? void 0 : _configs$business_lis3.value) !== '1' && !isChew && !hideHero && /*#__PURE__*/_react.default.createElement(_styles.BusinessHeroImg, {
|
|
268
268
|
bgimage: (_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$genera = _theme$images2.general) === null || _theme$images2$genera === void 0 ? void 0 : _theme$images2$genera.businessHero,
|
|
269
269
|
height: theme === null || theme === void 0 ? void 0 : (_theme$business_listi22 = theme.business_listing_view) === null || _theme$business_listi22 === void 0 ? void 0 : (_theme$business_listi23 = _theme$business_listi22.components) === null || _theme$business_listi23 === void 0 ? void 0 : (_theme$business_listi24 = _theme$business_listi23.business_hero) === null || _theme$business_listi24 === void 0 ? void 0 : (_theme$business_listi25 = _theme$business_listi24.style) === null || _theme$business_listi25 === void 0 ? void 0 : _theme$business_listi25.height
|
package/package.json
CHANGED
|
@@ -95,8 +95,7 @@ const BusinessControllerUI = (props) => {
|
|
|
95
95
|
|
|
96
96
|
const handleBusinessClick = (e) => {
|
|
97
97
|
if (favoriteRef?.current?.contains(e.target)) return
|
|
98
|
-
|
|
99
|
-
if (onPreorderBusiness && (!isBusinessOpen || !hasMenu)) onPreorderBusiness(business)
|
|
98
|
+
if (onPreorderBusiness && !isBusinessOpen) onPreorderBusiness(business)
|
|
100
99
|
else handleClick(business)
|
|
101
100
|
}
|
|
102
101
|
|
package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js
CHANGED
|
@@ -229,7 +229,7 @@ const BusinessesListingUI = (props) => {
|
|
|
229
229
|
{(windowSize.width < 576 || (configs?.business_listing_hide_image?.value !== '1' && !isChew)) && (
|
|
230
230
|
<BusinessBanner>
|
|
231
231
|
{windowSize.width < 576 && (
|
|
232
|
-
<OrderContextUI isBusinessList hideHero={(
|
|
232
|
+
<OrderContextUI isBusinessList hideHero={(configs?.business_listing_hide_image?.value !== '1' && !isChew) && !hideHero} />
|
|
233
233
|
)}
|
|
234
234
|
{(configs?.business_listing_hide_image?.value !== '1' && !isChew) && !hideHero && (
|
|
235
235
|
<BusinessHeroImg
|