ordering-ui-react-native 0.17.65 → 0.17.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.17.65",
3
+ "version": "0.17.66",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -538,17 +538,21 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
538
538
  </FeaturedWrapper>
539
539
  )
540
540
  }
541
- <View style={{ height: 8, backgroundColor: theme.colors.backgroundGray100 }} />
542
- {
543
- !businessId && !props.franchiseId && (
544
- <HighestRatedBusinesses
545
- onBusinessClick={handleBusinessClick}
546
- navigation={navigation}
547
- favoriteIds={favoriteIds}
548
- setFavoriteIds={setFavoriteIds}
549
- />
550
- )
551
- }
541
+ {!isChewLayout && (
542
+ <>
543
+ <View style={{ height: 8, backgroundColor: theme.colors.backgroundGray100 }} />
544
+ {
545
+ !businessId && !props.franchiseId && (
546
+ <HighestRatedBusinesses
547
+ onBusinessClick={handleBusinessClick}
548
+ navigation={navigation}
549
+ favoriteIds={favoriteIds}
550
+ setFavoriteIds={setFavoriteIds}
551
+ />
552
+ )
553
+ }
554
+ </>
555
+ )}
552
556
 
553
557
  <PageBanner position='app_business_listing' />
554
558
 
@@ -16,24 +16,24 @@ const BusinessControllerList = ({ businesses, onBusinessClick, navigation, order
16
16
  return (
17
17
  <>
18
18
  {businesses?.result?.map((business: any, i: number) => (
19
- <BusinessController
20
- key={`${business.id}_` + i}
21
- business={business}
22
- isBusinessOpen={business.open}
23
- handleCustomClick={() => onBusinessClick(business)}
24
- orderType={orderState?.options?.type}
25
- navigation={navigation}
26
- businessHeader={business?.header}
27
- businessFeatured={business?.featured}
28
- businessLogo={business?.logo}
29
- businessReviews={business?.reviews}
30
- businessDeliveryPrice={business?.delivery_price}
31
- businessDeliveryTime={business?.delivery_time}
32
- businessPickupTime={business?.pickup_time}
33
- businessDistance={business?.distance}
34
- handleCustomUpdate={handleCustomUpdate}
35
- style={style}
36
- />
19
+ <View style={style} key={`${business.id}_` + i}>
20
+ <BusinessController
21
+ business={business}
22
+ isBusinessOpen={business.open}
23
+ handleCustomClick={() => onBusinessClick(business)}
24
+ orderType={orderState?.options?.type}
25
+ navigation={navigation}
26
+ businessHeader={business?.header}
27
+ businessFeatured={business?.featured}
28
+ businessLogo={business?.logo}
29
+ businessReviews={business?.reviews}
30
+ businessDeliveryPrice={business?.delivery_price}
31
+ businessDeliveryTime={business?.delivery_time}
32
+ businessPickupTime={business?.pickup_time}
33
+ businessDistance={business?.distance}
34
+ handleCustomUpdate={handleCustomUpdate}
35
+ />
36
+ </View>
37
37
  ))}
38
38
  </>
39
39
  )
@@ -109,7 +109,12 @@ export const PreviousBusinessOrdered = (props: PreviousBusinessOrderedParams) =>
109
109
  });
110
110
 
111
111
  return (
112
- <ScrollView horizontal={isBusinessesSearchList} style={styles.container} showsVerticalScrollIndicator={false}>
112
+ <ScrollView
113
+ horizontal={isBusinessesSearchList}
114
+ style={styles.container}
115
+ showsVerticalScrollIndicator={false}
116
+ showsHorizontalScrollIndicator={false}
117
+ >
113
118
  {isBusinessesSearchList ? (
114
119
  <>
115
120
  {!businesses?.loading && (