ordering-ui-external 10.3.2 → 10.3.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.
|
@@ -135,7 +135,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
135
135
|
var hidePreviousOrders = theme === null || theme === void 0 || (_theme$business_listi5 = theme.business_listing_view) === null || _theme$business_listi5 === void 0 || (_theme$business_listi5 = _theme$business_listi5.components) === null || _theme$business_listi5 === void 0 || (_theme$business_listi5 = _theme$business_listi5.previous_orders_block) === null || _theme$business_listi5 === void 0 ? void 0 : _theme$business_listi5.hidden;
|
|
136
136
|
var hideHighestBusiness = theme === null || theme === void 0 || (_theme$business_listi6 = theme.business_listing_view) === null || _theme$business_listi6 === void 0 || (_theme$business_listi6 = _theme$business_listi6.components) === null || _theme$business_listi6 === void 0 || (_theme$business_listi6 = _theme$business_listi6.highest_rated_business_block) === null || _theme$business_listi6 === void 0 ? void 0 : _theme$business_listi6.hidden;
|
|
137
137
|
var hideSearchSection = hideCities && hideSearch && hideFilter;
|
|
138
|
-
var isAllCategoriesHidden = theme === null || theme === void 0 || (_theme$business_listi7 = theme.business_listing_view) === null || _theme$business_listi7 === void 0 || (_theme$business_listi7 = _theme$business_listi7.components) === null || _theme$business_listi7 === void 0 || (_theme$business_listi7 = _theme$business_listi7.categories) === null || _theme$business_listi7 === void 0 ? void 0 : _theme$business_listi7.hidden;
|
|
138
|
+
var isAllCategoriesHidden = (theme === null || theme === void 0 || (_theme$business_listi7 = theme.business_listing_view) === null || _theme$business_listi7 === void 0 || (_theme$business_listi7 = _theme$business_listi7.components) === null || _theme$business_listi7 === void 0 || (_theme$business_listi7 = _theme$business_listi7.categories) === null || _theme$business_listi7 === void 0 ? void 0 : _theme$business_listi7.hidden) || (props === null || props === void 0 ? void 0 : props.franchiseId);
|
|
139
139
|
var businessesIds = businessesList.businesses && ((_businessesList$busin = businessesList.businesses) === null || _businessesList$busin === void 0 ? void 0 : _businessesList$busin.map(function (business) {
|
|
140
140
|
return business.id;
|
|
141
141
|
}));
|
package/package.json
CHANGED
package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js
CHANGED
|
@@ -96,7 +96,7 @@ const BusinessesListingUI = (props) => {
|
|
|
96
96
|
const hidePreviousOrders = theme?.business_listing_view?.components?.previous_orders_block?.hidden
|
|
97
97
|
const hideHighestBusiness = theme?.business_listing_view?.components?.highest_rated_business_block?.hidden
|
|
98
98
|
const hideSearchSection = hideCities && hideSearch && hideFilter
|
|
99
|
-
const isAllCategoriesHidden = theme?.business_listing_view?.components?.categories?.hidden
|
|
99
|
+
const isAllCategoriesHidden = theme?.business_listing_view?.components?.categories?.hidden || props?.franchiseId
|
|
100
100
|
const businessesIds = businessesList.businesses &&
|
|
101
101
|
businessesList.businesses?.map(business => business.id)
|
|
102
102
|
const isChew = theme?.header?.components?.layout?.type?.toLowerCase() === 'chew'
|