ordering-ui-react-native 0.15.62 → 0.15.63

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.15.62",
3
+ "version": "0.15.63",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -45,7 +45,7 @@ export const AppleLogin = (props: any) => {
45
45
  handleLoading && handleLoading(false)
46
46
  }
47
47
  } else {
48
- showToast(ToastType.Error, `Error login on apple from api Code: ${code} ${Platform.OS}`, 10000)
48
+ handleErrors && handleErrors(result)
49
49
  handleLoading && handleLoading(false)
50
50
  }
51
51
  } catch (err: any) {
@@ -158,9 +158,6 @@ export const AppleLogin = (props: any) => {
158
158
 
159
159
  return (
160
160
  <Container>
161
- {credentialStateForUser !== -1 && (
162
- <Text>{credentialStateForUser}</Text>
163
- )}
164
161
  {canShowButton() &&
165
162
  <AppleButton
166
163
  onPress={() => Platform.OS == 'android' ? onAndroidButtonPress() : onIOSButtonPress(updateCredentialStateForUser)}
@@ -255,7 +255,7 @@ const CartUI = (props: any) => {
255
255
  <OSRow>
256
256
  <OText size={12} lineHeight={18} numberOfLines={1}>
257
257
  {fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}{' '}
258
- ({fee?.fixed > 0 && `${parsePrice(fee?.fixed)} + `}{fee.percentage}%){' '}
258
+ ({fee?.fixed > 0 && `${parsePrice(fee?.fixed)}${fee.percentage > 0 ? ' + ' : ''}`}{fee.percentage > 0 && `${fee.percentage}%`}){' '}
259
259
  </OText>
260
260
  <TouchableOpacity onPress={() => setOpenTaxModal({ open: true, data: fee, type: 'fee' })} >
261
261
  <AntIcon name='infocirlceo' size={16} color={theme.colors.primary} />
@@ -898,7 +898,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
898
898
  <OSRow>
899
899
  <OText size={12} lineHeight={18} weight={'400'} color={theme.colors.textNormal} numberOfLines={1}>
900
900
  {fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}
901
- ({fee?.fixed > 0 && `${parsePrice(fee?.fixed)} + `}{fee.percentage}%){' '}
901
+ ({fee?.fixed > 0 && `${parsePrice(fee?.fixed)}${fee.percentage > 0 ? ' + ' : ''}`}{fee.percentage > 0 && `${fee.percentage}%`}){' '}
902
902
  </OText>
903
903
  <TouchableOpacity onPress={() => setOpenTaxModal({ open: true, data: fee, type: 'fee' })}>
904
904
  <AntIcon name='infocirlceo' size={16} color={theme.colors.primary} />