ordering-ui-react-native 0.12.68 → 0.12.69

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.12.68",
3
+ "version": "0.12.69",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -41,10 +41,11 @@ const DriverTipsUI = (props: any) => {
41
41
  borderRadius: 30
42
42
  },
43
43
  inputStyle: {
44
+ borderColor: theme.colors.border,
45
+ borderRadius: 8,
46
+ marginRight: 20,
47
+ height: 44,
44
48
  flex: 1,
45
- borderWidth: 1,
46
- borderColor: theme.colors.disabled,
47
- marginRight: 10
48
49
  }
49
50
  })
50
51
 
@@ -117,21 +118,23 @@ const DriverTipsUI = (props: any) => {
117
118
  <OInput
118
119
  placeholder={placeholderCurrency}
119
120
  style={style.inputStyle}
121
+ inputStyle={{ fontSize: 12 }}
120
122
  onChange={handleChangeDriverTip}
121
123
  autoCapitalize='none'
122
124
  autoCorrect={false}
123
125
  />
124
126
  <OButton
125
- text={t('APPLY_TIP', 'Apply Tip')}
127
+ text={t('APPLY', 'Apply')}
126
128
  bgColor={theme.colors.primary}
127
129
  borderColor={theme.colors.primary}
128
- textStyle={{ color: 'white', fontSize: 20 }}
130
+ textStyle={{ color: 'white', fontSize: 12 }}
129
131
  imgRightSrc={null}
130
132
  isDisabled={!(value > 0 && value !== driverTip) || !value}
131
133
  onClick={() => {
132
134
  handlerChangeOption(value)
133
135
  setvalue(0)
134
136
  }}
137
+ style={{ borderRadius: 8, height: 44, shadowOpacity: 0 }}
135
138
  />
136
139
  </DTWrapperInput>
137
140
  {parseFloat(driverTip || 0) > 0 && (
@@ -60,5 +60,4 @@ export const DTWrapperInput = styled.View`
60
60
  flex-direction: row;
61
61
  align-items: center;
62
62
  justify-content: center;
63
- margin-top: 20px;
64
63
  `
@@ -192,19 +192,19 @@ const OrderSummaryUI = (props: any) => {
192
192
  {cart?.status !== 2 && (
193
193
  <OSTable>
194
194
  <View style={{ width: '100%', marginTop: 20 }}>
195
- <OText size={12}>{t('COMMENTS', 'Comments')}</OText>
195
+ <OText size={12} style={{ marginBottom: 10 }}>{t('COMMENTS', 'Comments')}</OText>
196
196
  <View style={{ flex: 1, width: '100%' }}>
197
197
  <OInput
198
198
  value={cart?.comment}
199
199
  placeholder={t('SPECIAL_COMMENTS', 'Special Comments')}
200
200
  onChange={(value: string) => handleChangeComment(value)}
201
201
  style={{
202
+ borderColor: theme.colors.border,
203
+ borderRadius: 10,
204
+ marginBottom: 20,
205
+ height: 104,
206
+ maxHeight: 104,
202
207
  alignItems: 'flex-start',
203
- width: '100%',
204
- height: 100,
205
- borderColor: theme.colors.textSecondary,
206
- paddingRight: 50,
207
- marginTop: 10
208
208
  }}
209
209
  multiline
210
210
  inputStyle={{ color: theme.colors.textPrimary, fontSize: 12 }}