ordering-ui-react-native 0.18.47 → 0.18.49

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.18.47",
3
+ "version": "0.18.49",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -393,7 +393,9 @@ const SignupFormUI = (props: SignupParams) => {
393
393
  vibrateApp()
394
394
  return
395
395
  }
396
- formState.result?.result && showToast(ToastType.Error, t(`${formState.result?.result[0]}`, 'Phone number already used'));
396
+ formState.result?.result && formState.result?.result[0]?.includes("_") ?
397
+ showToast(ToastType.Error, t(`${formState.result?.result[0]}`, 'Phone number already used')) :
398
+ showToast(ToastType.Error, formState.result?.result[0])
397
399
  formState.result?.result && vibrateApp()
398
400
  setIsLoadingVerifyModal(false);
399
401
  }
@@ -49,7 +49,7 @@ export const WalletTransactionItem = (props: any) => {
49
49
  .replace(':order_id', item?.event?.order_id ? item?.event?.order_id + ' ' : '')}
50
50
  </OText>
51
51
  </MessageBlock>
52
- {!!item?.description && (
52
+ {/* {!!item?.description && (
53
53
  <DescriptionBlock>
54
54
  <OText>{item?.description}</OText>
55
55
  </DescriptionBlock>
@@ -63,7 +63,7 @@ export const WalletTransactionItem = (props: any) => {
63
63
  </OText>
64
64
  </OText>
65
65
  </DescriptionBlock>
66
- )}
66
+ )} */}
67
67
  </Container>
68
68
  )
69
69
  }
@@ -127,6 +127,9 @@ const WalletsUI = (props: any) => {
127
127
  display: 'flex',
128
128
  flexDirection: 'row',
129
129
  alignItems: 'center',
130
+ marginTop: 30,
131
+ justifyContent: 'space-between',
132
+ alignContent: 'center'
130
133
  },
131
134
  }}>
132
135
  {(!props.hideBackBtn || !hideWalletsTheme) && !isChewLayout && (
@@ -155,24 +158,25 @@ const WalletsUI = (props: any) => {
155
158
  <OText
156
159
  size={20}
157
160
  style={{
158
- marginTop: 30,
159
161
  marginLeft: (!props.hideBackBtn || !hideWalletsTheme) && !isChewLayout ? 40 : 0,
160
162
  color: theme.colors.textNormal,
161
163
  }}
162
164
  weight={Platform.OS === 'ios' ? '600' : 'bold'}
163
- >{t('WALLETS', 'Wallets')}</OText>
164
- </View>
165
- {isChewLayout && (
166
- <OButton
167
- text={t('WALLET_HISTORY', 'Wallet history')}
168
- bgColor={theme.colors.white}
169
- borderColor={theme.colors.lightGray}
170
- imgRightSrc={null}
171
- textStyle={{ fontSize: 12, color: theme.colors.disabled }}
172
- onClick={() => setOpenHistory(true)}
173
- style={{ borderRadius: 8, height: 40 }}
174
- />
175
- )}
165
+ >
166
+ {t('WALLETS', 'Wallets')}
167
+ </OText>
168
+ {isChewLayout && (
169
+ <OButton
170
+ text={t('WALLET_HISTORY', 'Wallet history')}
171
+ bgColor={theme.colors.white}
172
+ borderColor={theme.colors.lightGray}
173
+ imgRightSrc={null}
174
+ textStyle={{ fontSize: 12, color: theme.colors.disabled }}
175
+ onClick={() => setOpenHistory(true)}
176
+ style={{ borderRadius: 8, height: 40 }}
177
+ />
178
+ )}
179
+ </View>
176
180
  </Header>
177
181
 
178
182
  {!walletList.loading &&
@@ -313,15 +317,18 @@ const WalletsUI = (props: any) => {
313
317
  <ScrollView>
314
318
  <WalletTransactionsWrapper>
315
319
  <OButton
320
+ imgLeftStyle={{ width: 18 }}
316
321
  imgRightSrc={null}
317
322
  style={{
318
323
  borderWidth: 0,
319
- backgroundColor: theme.colors.white,
320
- padding: 0,
321
- paddingHorizontal: 0,
322
- width: 30,
324
+ width: 26,
325
+ height: 26,
326
+ backgroundColor: '#FFF',
327
+ borderColor: '#FFF',
328
+ shadowColor: '#FFF',
323
329
  paddingLeft: 0,
324
- paddingRight: 0
330
+ paddingRight: 0,
331
+ marginBottom: 10
325
332
  }}
326
333
  onClick={() => setOpenHistory(false)}
327
334
  icon={AntDesignIcon}