ordering-ui-react-native 0.21.90 → 0.21.92

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.21.90",
3
+ "version": "0.21.92",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -140,8 +140,10 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
140
140
  } </br>`
141
141
  : ''
142
142
  }
143
- ${t('ZIPCODE', 'Zipcode')}: ${order?.customer.zipcode}
144
- </p>
143
+ ${order?.customer.zipcode ?
144
+ `${t('ZIPCODE', 'Zipcode')}: ${order?.customer.zipcode}`
145
+ : ''}
146
+ </p>
145
147
 
146
148
  <h1>${t('BUSINESS_DETAILS', 'Business details')}</h1>
147
149
  <p style="font-size: 27px">
@@ -241,15 +243,18 @@ export const OrderSummary = ({ order, navigation, orderStatus, askBluetoothPermi
241
243
  : ''
242
244
  }
243
245
 
244
- ${order?.summary?.delivery_price > 0
245
- ? `<div style="font-size: 25px;"> ${t(
246
- 'DELIVERY_FEE',
247
- 'Delivery Fee',
248
- )}
249
- </div>`
250
- : ''
251
- }
246
+ ${order?.summary?.delivery_price > 0 ?
247
+ ` <div style="display: flex">
248
+ <div style="font-size: 26px; width: 70%; display: flex; justify-content: flex-start">
249
+ ${t('DELIVERY_FEE', 'Delivery Fee')}
250
+ </div>
251
+
252
+ <div style="font-size: 26px; width: 30%; display: flex; justify-content: flex-end">
253
+ ${parsePrice(order?.summary?.delivery_price ?? 0)}
254
+ </div>` :
255
+ ''}
252
256
 
257
+ </div>
253
258
  <div style="display: flex">
254
259
 
255
260
  <div style="font-size: 26px; width: 70%; display: flex; justify-content: flex-start">
@@ -72,7 +72,7 @@ export const MultiOrdersDetailsUI = (props: any) => {
72
72
  navigation?.canGoBack() && navigation.goBack();
73
73
  return;
74
74
  }
75
- navigation.navigate('BusinessList');
75
+ navigation.navigate('BottomTab');
76
76
  return true
77
77
  }
78
78