ordering-ui-react-native 0.14.95 → 0.14.96

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.14.95",
3
+ "version": "0.14.96",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -220,7 +220,7 @@ const CartUI = (props: any) => {
220
220
  <OSRow>
221
221
  <OText numberOfLines={1}>
222
222
  {fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}{' '}
223
- ({parsePrice(fee?.fixed)} + {fee?.percentage}%){' '}
223
+ ({fee?.fixed > 0 && `${parsePrice(fee?.fixed)} + `}{fee.percentage}%){' '}
224
224
  </OText>
225
225
  <TouchableOpacity onPress={() => setOpenTaxModal({ open: true, data: fee, type: 'fee' })} >
226
226
  <AntIcon name='exclamationcircleo' size={18} color={theme.colors.primary} />
@@ -535,7 +535,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
535
535
  <OSRow>
536
536
  <OText numberOfLines={1}>
537
537
  {fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}
538
- ({parsePrice(fee?.fixed)} + {fee.percentage}%){' '}
538
+ ({fee?.fixed > 0 && `${parsePrice(fee?.fixed)} + `}{fee.percentage}%){' '}
539
539
  </OText>
540
540
  <TouchableOpacity onPress={() => setOpenTaxModal({ open: true, data: fee, type: 'fee' })}>
541
541
  <AntIcon name='exclamationcircleo' size={18} color={theme.colors.primary} />
@@ -252,7 +252,7 @@ const CartUI = (props: any) => {
252
252
  <OSRow>
253
253
  <OText size={12} lineHeight={18} numberOfLines={1}>
254
254
  {fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}{' '}
255
- ({parsePrice(fee?.fixed)} + {fee?.percentage}%){' '}
255
+ ({fee?.fixed > 0 && `${parsePrice(fee?.fixed)} + `}{fee.percentage}%){' '}
256
256
  </OText>
257
257
  <TouchableOpacity onPress={() => setOpenTaxModal({ open: true, data: fee, type: 'fee' })} >
258
258
  <AntIcon name='infocirlceo' size={16} color={theme.colors.primary} />
@@ -895,7 +895,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
895
895
  <OSRow>
896
896
  <OText size={12} lineHeight={18} weight={'400'} color={theme.colors.textNormal} numberOfLines={1}>
897
897
  {fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}
898
- ({parsePrice(fee?.fixed)} + {fee.percentage}%){' '}
898
+ ({fee?.fixed > 0 && `${parsePrice(fee?.fixed)} + `}{fee.percentage}%){' '}
899
899
  </OText>
900
900
  <TouchableOpacity onPress={() => setOpenTaxModal({ open: true, data: fee, type: 'fee' })}>
901
901
  <AntIcon name='infocirlceo' size={16} color={theme.colors.primary} />