ordering-ui-react-native 0.16.95 → 0.16.97

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.16.95",
3
+ "version": "0.16.97",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -476,8 +476,8 @@ export const DriverMap = (props: GoogleMapsParams) => {
476
476
  style={styles.arrowDistance}
477
477
  />
478
478
  <OText size={12} numberOfLines={3}>{`${(
479
- distancesFromTwoPlacesKm * 3280.84
480
- ).toFixed(0)} ${t('FT', 'Ft')}`}</OText>
479
+ distancesFromTwoPlacesKm
480
+ ).toFixed(2)} ${t('KM', 'KM')}`}</OText>
481
481
  </View>
482
482
  <View style={{ width: '75%', paddingRight: 20 }}>
483
483
  <OText
@@ -73,8 +73,6 @@ export const BusinessesListing = (props: any) => {
73
73
  )
74
74
  }
75
75
 
76
-
77
-
78
76
  useEffect(() => {
79
77
  (checkNotificationStatus?.checked && auth) && _getLastOrderHasNoReview()
80
78
  }, [checkNotificationStatus, auth])
@@ -82,7 +80,7 @@ export const BusinessesListing = (props: any) => {
82
80
  return (
83
81
  <>
84
82
  {((layout === 'original') || logosLayout) && <OriginalBusinessListing {...props} />}
85
- {(layout === 'appointment') && !logosLayout && <AppointmentBusinessListing {...props} />}
83
+ {(layout === 'appointments') && !logosLayout && <AppointmentBusinessListing {...props} />}
86
84
 
87
85
  {lastOrderReview?.isReviewOpen && (
88
86
  <OBottomPopup
@@ -527,7 +527,7 @@ export const ProductOptionsUI = (props: any) => {
527
527
  style={styles.slide1}
528
528
  key={i}
529
529
  >
530
- {img.includes('image') ? (
530
+ {String(img).includes('image') ? (
531
531
  <FastImage
532
532
  style={{ height: '100%', opacity: isSoldOut ? 0.5 : 1 }}
533
533
  source={{
@@ -569,7 +569,7 @@ export const ProductOptionsUI = (props: any) => {
569
569
  opacity: index === thumbsSwiper ? 1 : 0.8
570
570
  }}
571
571
  >
572
- {img.includes('image') ? (
572
+ {String(img).includes('image') ? (
573
573
  <OIcon
574
574
  url={img}
575
575
  style={{