ordering-ui-react-native 0.17.28 → 0.17.30

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.28",
3
+ "version": "0.17.30",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -600,10 +600,10 @@ const AddressFormUI = (props: AddressFormParams) => {
600
600
  />
601
601
 
602
602
  {(
603
- (!isEditing && !isGuestUser && !formState.changes?.address) ||
604
- (isEditing && !isGuestUser && !formState.changes?.address && formState.changes?.address !== undefined)) ||
605
- (isGuestUser && !formState.changes?.address && formState.changes?.address !== undefined) &&
606
- (
603
+ ((!isEditing && !isGuestUser && !formState.changes?.address) ||
604
+ (isEditing && !isGuestUser && !formState.changes?.address && formState.changes?.address !== undefined)) ||
605
+ (isGuestUser && !formState.changes?.address && formState.changes?.address !== undefined)) &&
606
+ (
607
607
  <View style={styles.pinIcon}>
608
608
  <GPSButton
609
609
  apiKey={googleMapsApiKey}
@@ -617,7 +617,7 @@ const AddressFormUI = (props: AddressFormParams) => {
617
617
  IconButton={<OIcon src={theme.images.general.pin} width={16} />}
618
618
  />
619
619
  </View>
620
- )}
620
+ )}
621
621
  </AutocompleteInput>
622
622
 
623
623
  {(locationChange || formState.changes?.location) && (
@@ -57,12 +57,12 @@ export const BusinessBasicInformation = (
57
57
  height: isChewLayout ? 170 : 260,
58
58
  },
59
59
  logoStyle: {
60
- width: 72,
61
- height: 72,
62
- borderRadius: 7.6,
63
- justifyContent: 'flex-start',
64
- alignItems: 'flex-start'
65
- },
60
+ width: 72,
61
+ height: 72,
62
+ borderRadius: 7.6,
63
+ justifyContent: 'flex-start',
64
+ alignItems: 'flex-start'
65
+ },
66
66
  businessInfo: {
67
67
  paddingHorizontal: 40,
68
68
  paddingTop: isChewLayout ? 0 : 56,
@@ -271,9 +271,11 @@ export const BusinessBasicInformation = (
271
271
  ? styles.businesInfoheaderStyle
272
272
  : { ...styles.headerStyle, backgroundColor: theme.colors.backgroundGray }
273
273
  }
274
- {...(!loading && { source: {
275
- uri: header || optimizeImage(businessState?.business?.header || theme?.images?.dummies?.businessHeader, 'h_250,c_limit')
276
- }})}
274
+ {...(!loading && {
275
+ source: {
276
+ uri: header || optimizeImage(businessState?.business?.header || theme?.images?.dummies?.businessHeader, 'h_250,c_limit')
277
+ }
278
+ })}
277
279
  imageStyle={{ opacity: isChewLayout ? 0.5 : 1 }}
278
280
  >
279
281
  {!isBusinessInfoShow && !isChewLayout && (
@@ -301,15 +303,21 @@ export const BusinessBasicInformation = (
301
303
  {showLogo && (
302
304
  <BusinessLogo isChewLayout={isChewLayout}>
303
305
  {!isBusinessInfoShow && (
304
- <FastImage
305
- style={styles.logoStyle}
306
- source={{
307
- uri: logo || optimizeImage(businessState?.business?.logo || theme?.images?.dummies?.businessLogo, 'h_70,c_limit'),
308
- priority: FastImage.priority.high,
309
- cache:FastImage.cacheControl.web
310
- }}
311
- resizeMode={FastImage.resizeMode.contain}
312
- />
306
+ logo || businessState?.business?.logo ?
307
+ <FastImage
308
+ style={styles.logoStyle}
309
+ source={{
310
+ uri: logo || optimizeImage(businessState?.business?.logo, 'h_70,c_limit'),
311
+ priority: FastImage.priority.high,
312
+ cache: FastImage.cacheControl.web
313
+ }}
314
+ resizeMode={FastImage.resizeMode.contain}
315
+ />
316
+ :
317
+ <OIcon
318
+ src={theme?.images?.dummies?.businessLogo}
319
+ style={styles.logoStyle}
320
+ />
313
321
  )}
314
322
  </BusinessLogo>
315
323
  )}