ordering-ui-react-native 0.14.67 → 0.14.68

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.67",
3
+ "version": "0.14.68",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -126,11 +126,11 @@ const UserVerificationUI = (props: any) => {
126
126
  },
127
127
  phoneInputStyle: {
128
128
  height: 30,
129
- borderWidth: 0,
129
+ borderWidth: 1,
130
130
  fontSize: 12,
131
- paddingStart: 0,
132
131
  paddingBottom: 0,
133
132
  marginBottom: -0,
133
+ paddingHorizontal: 10
134
134
  }
135
135
  });
136
136
 
@@ -475,7 +475,7 @@ const UserVerificationUI = (props: any) => {
475
475
  <OButton
476
476
  onClick={(verificationState.email || verificationState.phone)
477
477
  ? () => setVerificationState({ email: false, phone: false })
478
- : () => handleSendOtp(verificationState.phone ? 'phone' : '')
478
+ : () => handleSendOtp(isPhoneVerifyRequired && !isEmailVerifyRequired ? 'phone' : '')
479
479
  }
480
480
  text={(verificationState.email || verificationState.phone) ? t('CANCEL', 'Cancel') : t('SEND_CODE', 'Send code')}
481
481
  bgColor={(verificationState.email || verificationState.phone) ? theme.colors.secundary : theme.colors.primary}
@@ -1,4 +1,4 @@
1
- import styled from 'styled-components/native';
1
+ import styled, { css } from 'styled-components/native';
2
2
 
3
3
  export const Container = styled.View`
4
4
  padding: 20px;
@@ -11,7 +11,13 @@ export const WrapperText = styled.View`
11
11
  align-items: center;
12
12
  `
13
13
 
14
- export const InputWrapper = styled.View``
14
+ export const InputWrapper = styled.View`
15
+ ${(props: any) => props.phone && css`
16
+ width: 60%;
17
+ align-self: center;
18
+ padding-top: 20px;
19
+ `}
20
+ `
15
21
 
16
22
  export const WrapperActions = styled.View`
17
23
  position: relative;