ordering-ui-react-native 0.23.92 → 0.23.93

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.23.92",
3
+ "version": "0.23.93",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -40,6 +40,8 @@ function BusinessControllerPropsAreEqual(prevProps: any, nextProps: any) {
40
40
  prevProps.isBusinessOpen === nextProps.isBusinessOpen
41
41
  }
42
42
 
43
+ const deliveryTypes = [1, 7]
44
+
43
45
  export const BusinessControllerUI = React.memo((props: BusinessControllerParams) => {
44
46
  const {
45
47
  business,
@@ -321,14 +323,14 @@ export const BusinessControllerUI = React.memo((props: BusinessControllerParams)
321
323
  </View>
322
324
  ) : (
323
325
  <View style={styles.bullet}>
324
- {orderState?.options?.type === 1 && !hideBusinessFee && (
326
+ {deliveryTypes.includes(orderState?.options?.type) && !hideBusinessFee && (
325
327
  <OText size={textSize} color={theme.colors.textSecondary}>
326
328
  {`${t('DELIVERY_FEE', 'Delivery fee')} ${parsePrice(businessDeliveryPrice ?? business?.delivery_price) + ' \u2022 '}`}
327
329
  </OText>
328
330
  )}
329
331
  {!hideBusinessTime && (
330
332
  <OText size={textSize} color={theme.colors.textSecondary}>{`${convertHoursToMinutes(
331
- orderState?.options?.type === 1
333
+ deliveryTypes.includes(orderState?.options?.type)
332
334
  ? (businessDeliveryTime ?? business?.delivery_time)
333
335
  : (businessPickupTime ?? business?.pickup_time),
334
336
  )} \u2022 `}</OText>