ordering-ui-react-native 0.22.51 → 0.22.53

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.
Files changed (68) hide show
  1. package/package.json +1 -1
  2. package/themes/business/src/components/MapView/index.tsx +20 -8
  3. package/themes/business/src/components/NewOrderNotification/index.tsx +12 -4
  4. package/themes/business/src/components/shared/OTextarea.tsx +8 -9
  5. package/themes/original/src/components/AddressForm/index.tsx +0 -11
  6. package/themes/original/src/components/AddressList/index.tsx +0 -13
  7. package/themes/original/src/components/BusinessItemAccordion/index.tsx +4 -2
  8. package/themes/original/src/components/BusinessListingSearch/BusinessSearchHeader.tsx +1 -3
  9. package/themes/original/src/components/BusinessListingSearch/index.tsx +1 -2
  10. package/themes/original/src/components/BusinessPreorder/index.tsx +14 -17
  11. package/themes/original/src/components/Cart/index.tsx +1 -2
  12. package/themes/original/src/components/CartContent/index.tsx +1 -2
  13. package/themes/original/src/components/Checkout/index.tsx +0 -6
  14. package/themes/original/src/components/CitiesControl/index.tsx +0 -3
  15. package/themes/original/src/components/CouponControl/index.tsx +1 -3
  16. package/themes/original/src/components/DriverTips/index.tsx +1 -3
  17. package/themes/original/src/components/Favorite/index.tsx +0 -5
  18. package/themes/original/src/components/FavoriteList/index.tsx +0 -1
  19. package/themes/original/src/components/ForgotPasswordForm/index.tsx +4 -10
  20. package/themes/original/src/components/GiftCard/GiftCardUI/index.tsx +15 -17
  21. package/themes/original/src/components/GiftCard/PurchaseGiftCard/index.tsx +3 -7
  22. package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +24 -32
  23. package/themes/original/src/components/GiftCard/SendGiftCard/index.tsx +7 -9
  24. package/themes/original/src/components/GiftCard/VerticalGiftCardOrdersLayout/index.tsx +11 -12
  25. package/themes/original/src/components/Help/index.tsx +0 -5
  26. package/themes/original/src/components/HelpAccountAndPayment/index.tsx +0 -5
  27. package/themes/original/src/components/HelpGuide/index.tsx +0 -5
  28. package/themes/original/src/components/HelpOrder/index.tsx +0 -5
  29. package/themes/original/src/components/Home/index.tsx +0 -3
  30. package/themes/original/src/components/LoginForm/Otp/index.tsx +0 -3
  31. package/themes/original/src/components/LoginForm/index.tsx +0 -9
  32. package/themes/original/src/components/MessageListing/index.tsx +0 -5
  33. package/themes/original/src/components/MomentOption/index.tsx +1 -8
  34. package/themes/original/src/components/MultiCheckout/index.tsx +0 -1
  35. package/themes/original/src/components/MultiOrdersDetails/index.tsx +1 -0
  36. package/themes/original/src/components/MyOrders/index.tsx +0 -5
  37. package/themes/original/src/components/NavBar/index.tsx +1 -4
  38. package/themes/original/src/components/NetworkError/index.tsx +0 -5
  39. package/themes/original/src/components/NotFoundSource/index.tsx +0 -3
  40. package/themes/original/src/components/Notifications/index.tsx +0 -5
  41. package/themes/original/src/components/OrderDetails/OrderHistory.tsx +5 -7
  42. package/themes/original/src/components/OrderDetails/index.tsx +0 -2
  43. package/themes/original/src/components/OrderTypeSelector/index.tsx +3 -8
  44. package/themes/original/src/components/PaymentOptionStripe/index.tsx +0 -5
  45. package/themes/original/src/components/PaymentOptions/index.tsx +0 -2
  46. package/themes/original/src/components/PlaceSpot/index.tsx +1 -3
  47. package/themes/original/src/components/PreviousOrders/index.tsx +1 -4
  48. package/themes/original/src/components/ProductForm/ActionButton.tsx +3 -4
  49. package/themes/original/src/components/ProfessionalProfile/index.tsx +4 -5
  50. package/themes/original/src/components/Promotions/index.tsx +2 -7
  51. package/themes/original/src/components/ReviewDriver/index.tsx +1 -6
  52. package/themes/original/src/components/ReviewOrder/index.tsx +2 -7
  53. package/themes/original/src/components/ReviewProducts/index.tsx +1 -6
  54. package/themes/original/src/components/ReviewTrigger/index.tsx +2 -2
  55. package/themes/original/src/components/ServiceForm/index.tsx +52 -54
  56. package/themes/original/src/components/Sessions/index.tsx +3 -8
  57. package/themes/original/src/components/SignupForm/index.tsx +3 -13
  58. package/themes/original/src/components/SingleOrderCard/index.tsx +0 -1
  59. package/themes/original/src/components/SingleProductCard/index.tsx +2 -2
  60. package/themes/original/src/components/StripeCardForm/index.tsx +0 -3
  61. package/themes/original/src/components/StripeElementsForm/index.tsx +0 -1
  62. package/themes/original/src/components/StripeRedirectForm/index.tsx +0 -3
  63. package/themes/original/src/components/UpsellingProducts/UpsellingContent.tsx +1 -3
  64. package/themes/original/src/components/UserFormDetails/index.tsx +1 -5
  65. package/themes/original/src/components/UserProfileForm/index.tsx +0 -5
  66. package/themes/original/src/components/Wallets/index.tsx +1 -3
  67. package/themes/original/src/components/WebsocketStatus/index.tsx +1 -4
  68. package/themes/original/src/components/shared/OButton.tsx +3 -2
@@ -36,10 +36,10 @@ const RedeemGiftCardUI = (props: any) => {
36
36
  marginTop: 20
37
37
  },
38
38
  inputStyle: {
39
- borderWidth: 1,
40
- borderColor: theme.colors.border,
41
- borderRadius: 7.6,
42
- },
39
+ borderWidth: 1,
40
+ borderColor: theme.colors.border,
41
+ borderRadius: 7.6,
42
+ },
43
43
  })
44
44
 
45
45
  const onSubmit = (values) => {
@@ -65,7 +65,7 @@ const RedeemGiftCardUI = (props: any) => {
65
65
  t('ERROR', 'Error'),
66
66
  stringError,
67
67
  [
68
- { text: t('OK', 'oK'), onPress: () => {} }
68
+ { text: t('OK', 'oK'), onPress: () => { } }
69
69
  ]
70
70
  )
71
71
  }
@@ -85,7 +85,7 @@ const RedeemGiftCardUI = (props: any) => {
85
85
  t('ERROR', 'Error'),
86
86
  stringError,
87
87
  [
88
- { text: t('OK', 'oK'), onPress: () => {} }
88
+ { text: t('OK', 'oK'), onPress: () => { } }
89
89
  ]
90
90
  )
91
91
  }, [actionState.error])
@@ -108,12 +108,10 @@ const RedeemGiftCardUI = (props: any) => {
108
108
  borderWidth: 0,
109
109
  width: 26,
110
110
  height: 26,
111
- backgroundColor: '#FFF',
112
- borderColor: '#FFF',
113
- shadowColor: '#FFF',
114
111
  paddingLeft: 0,
115
112
  paddingRight: 0,
116
113
  }}
114
+ useArrow
117
115
  onClick={onClose}
118
116
  icon={AntDesignIcon}
119
117
  iconProps={{
@@ -124,25 +122,25 @@ const RedeemGiftCardUI = (props: any) => {
124
122
  }
125
123
  }}
126
124
  />
127
- <OText color={theme.colors.textNormal} weight='bold' size={20} mLeft={10}>{t('REDEEM_GIFT_CARD', 'Redeem a gift card')}</OText>
125
+ <OText color={theme.colors.textNormal} weight='bold' size={20} mLeft={10}>{t('REDEEM_GIFT_CARD', 'Redeem a gift card')}</OText>
128
126
  </View>
129
127
  <FormController>
130
128
  <OText color={theme.colors.textNormal} size={14} mBottom={10}>{t('GIFT_CARD_CODE', 'Gift card code')}</OText>
131
129
  <Controller
132
130
  control={control}
133
131
  render={({ onChange, value }: any) => (
134
- <OInput
135
- placeholder='XXXX-XXXX-XXXX-XXXX'
136
- value={codeValue}
137
- onChange={(val: any) => {
138
- onChange(val)
139
- handleChangeCode(val)
140
- }}
141
- autoCapitalize='characters'
142
- autoCorrect={false}
143
- blurOnSubmit={false}
144
- style={style.inputStyle}
145
- />
132
+ <OInput
133
+ placeholder='XXXX-XXXX-XXXX-XXXX'
134
+ value={codeValue}
135
+ onChange={(val: any) => {
136
+ onChange(val)
137
+ handleChangeCode(val)
138
+ }}
139
+ autoCapitalize='characters'
140
+ autoCorrect={false}
141
+ blurOnSubmit={false}
142
+ style={style.inputStyle}
143
+ />
146
144
  )}
147
145
  name='code'
148
146
  rules={{
@@ -178,9 +176,7 @@ const RedeemGiftCardUI = (props: any) => {
178
176
  <OButton
179
177
  onClick={handleSubmit(onSubmit)}
180
178
  text={actionState?.loading ? t('LOADING', 'Loading') : t('APPLY_TO_YOUR_BALANCE', 'Apply to your balance')}
181
- bgColor={theme.colors.primary}
182
- borderColor={theme.colors.primary}
183
- textStyle={{ color: 'white', fontSize: 13 }}
179
+ textStyle={{ fontSize: 13 }}
184
180
  imgRightSrc={null}
185
181
  style={style.btnStyle}
186
182
  isDisabled={actionState.loading}
@@ -202,12 +198,10 @@ const RedeemGiftCardUI = (props: any) => {
202
198
  borderWidth: 0,
203
199
  width: 26,
204
200
  height: 26,
205
- backgroundColor: '#FFF',
206
- borderColor: '#FFF',
207
- shadowColor: '#FFF',
208
201
  paddingLeft: 0,
209
202
  paddingRight: 0,
210
203
  }}
204
+ useArrow
211
205
  onClick={onClose}
212
206
  icon={AntDesignIcon}
213
207
  iconProps={{
@@ -218,7 +212,7 @@ const RedeemGiftCardUI = (props: any) => {
218
212
  }
219
213
  }}
220
214
  />
221
- <OText color={theme.colors.textNormal} weight='bold' size={20} mLeft={10}>{t('GIFT_CARD', 'Gift card')}</OText>
215
+ <OText color={theme.colors.textNormal} weight='bold' size={20} mLeft={10}>{t('GIFT_CARD', 'Gift card')}</OText>
222
216
  </View>
223
217
  <View>
224
218
  <OText color={theme.colors.textNormal} size={14} mBottom={6}>{t('TYPE', 'Type')}: {redeemedGiftCard?.type}</OText>
@@ -232,9 +226,7 @@ const RedeemGiftCardUI = (props: any) => {
232
226
  onClose()
233
227
  }}
234
228
  text={t('OK', 'Ok')}
235
- bgColor={theme.colors.primary}
236
- borderColor={theme.colors.primary}
237
- textStyle={{ color: 'white', fontSize: 13 }}
229
+ textStyle={{ fontSize: 13 }}
238
230
  imgRightSrc={null}
239
231
  style={style.btnStyle}
240
232
  />
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect } from 'react'
2
2
  import { StyleSheet, Platform, Alert } from 'react-native';
3
- import { useLanguage, SendGiftCard as SendGiftCardController } from 'ordering-components/native';
3
+ import { useLanguage, SendGiftCard as SendGiftCardController } from 'ordering-components/native';
4
4
  import { useTheme } from 'styled-components/native';
5
5
  import { OText, OButton, OInput } from '../../shared';
6
6
  import { useForm, Controller } from 'react-hook-form'
@@ -29,10 +29,10 @@ const SendGiftCardUI = (props: any) => {
29
29
  marginTop: 20
30
30
  },
31
31
  inputStyle: {
32
- borderWidth: 1,
33
- borderColor: theme.colors.border,
34
- borderRadius: 7.6,
35
- },
32
+ borderWidth: 1,
33
+ borderColor: theme.colors.border,
34
+ borderRadius: 7.6,
35
+ },
36
36
  })
37
37
 
38
38
  const onSubmit = (values) => {
@@ -50,7 +50,7 @@ const SendGiftCardUI = (props: any) => {
50
50
  t('ERROR', 'Error'),
51
51
  stringError,
52
52
  [
53
- { text: t('OK', 'oK'), onPress: () => {} }
53
+ { text: t('OK', 'oK'), onPress: () => { } }
54
54
  ]
55
55
  )
56
56
  }
@@ -144,9 +144,7 @@ const SendGiftCardUI = (props: any) => {
144
144
  <OButton
145
145
  onClick={handleSubmit(onSubmit)}
146
146
  text={actionState?.loading ? t('LOADING', 'Loading') : t('SEND_GIFT_CARD', 'Send gift card')}
147
- bgColor={theme.colors.primary}
148
- borderColor={theme.colors.primary}
149
- textStyle={{ color: 'white', fontSize: 13 }}
147
+ textStyle={{ fontSize: 13 }}
150
148
  imgRightSrc={null}
151
149
  style={style.btnStyle}
152
150
  isDisabled={actionState.loading}
@@ -2,9 +2,9 @@ import React, { useEffect } from 'react';
2
2
  import { useLanguage, GiftCardOrdersList as GiftCardOrdersListController } from 'ordering-components/native';
3
3
  import { useTheme } from 'styled-components/native';
4
4
  import {
5
- Placeholder,
6
- PlaceholderLine,
7
- Fade
5
+ Placeholder,
6
+ PlaceholderLine,
7
+ Fade
8
8
  } from 'rn-placeholder';
9
9
  import { SingleGiftCard } from '../SingleGiftCard';
10
10
  import { OButton, OText } from '../../shared';
@@ -24,7 +24,7 @@ const VerticalGiftCardOrdersLayoutUI = (props: any) => {
24
24
  onNavigationRedirect
25
25
  } = props
26
26
 
27
- const theme = useTheme();
27
+ const theme = useTheme();
28
28
  const [, t] = useLanguage()
29
29
 
30
30
  useEffect(() => {
@@ -40,8 +40,8 @@ const VerticalGiftCardOrdersLayoutUI = (props: any) => {
40
40
  <PlaceholderLine width={30} height={16} />
41
41
  </Placeholder>
42
42
  ) : giftCards.list?.length > 0 && (
43
- <OText size={16} lineHeight={24} weight={'500'} color={theme.colors.textNormal} mBottom={24} style={{ marginTop: 24 }}>{title}</OText>
44
- )}
43
+ <OText size={16} lineHeight={24} weight={'500'} color={theme.colors.textNormal} mBottom={24} style={{ marginTop: 24 }}>{title}</OText>
44
+ )}
45
45
  {giftCards.list.map(card => (
46
46
  <SingleGiftCardWrapper key={card.id}>
47
47
  <SingleGiftCard
@@ -62,12 +62,11 @@ const VerticalGiftCardOrdersLayoutUI = (props: any) => {
62
62
  {paginationProps.totalPages && paginationProps.currentPage < paginationProps.totalPages && (
63
63
  <WrappButton>
64
64
  <OButton
65
- onClick={loadMoreOrders}
66
- text={t('LOAD_MORE_ORDERS', 'Load more orders')}
67
- imgRightSrc={null}
68
- textStyle={{ color: theme.colors.white }}
69
- style={{ borderRadius: 7.6, shadowOpacity: 0 }}
70
- />
65
+ onClick={loadMoreOrders}
66
+ text={t('LOAD_MORE_ORDERS', 'Load more orders')}
67
+ imgRightSrc={null}
68
+ style={{ borderRadius: 7.6, shadowOpacity: 0 }}
69
+ />
71
70
  </WrappButton>
72
71
  )}
73
72
  </ProductsListContainer>
@@ -48,11 +48,6 @@ export const Help = (props: HelpParams) => {
48
48
  onActionLeft={goToBack}
49
49
  showCall={false}
50
50
  btnStyle={{ paddingLeft: 0 }}
51
- buttonProps={{
52
- bgColor: theme.colors.white,
53
- borderColor: theme.colors.white,
54
- textStyle: { color: theme.colors.btnFont }
55
- }}
56
51
  />
57
52
  <HelpSubItem
58
53
  onPress={() => onRedirect('HelpOrder')}
@@ -37,11 +37,6 @@ export const HelpAccountAndPayment = (props: HelpAccountAndPaymentParams) => {
37
37
  onActionLeft={goToBack}
38
38
  btnStyle={{ paddingLeft: 0 }}
39
39
  showCall={false}
40
- buttonProps={{
41
- bgColor: theme.colors.white,
42
- borderColor: theme.colors.white,
43
- textStyle: { color: theme.colors.btnFont }
44
- }}
45
40
  />
46
41
  <Content>
47
42
  <OText mBottom={20}>
@@ -43,11 +43,6 @@ export const HelpGuide = (props: HelpGuideParams) => {
43
43
  onActionLeft={goToBack}
44
44
  btnStyle={{ paddingLeft: 0 }}
45
45
  showCall={false}
46
- buttonProps={{
47
- bgColor: theme.colors.white,
48
- borderColor: theme.colors.white,
49
- textStyle: { color: theme.colors.btnFont }
50
- }}
51
46
  />
52
47
  <Content>
53
48
  <OText mBottom={15}>
@@ -39,11 +39,6 @@ export const HelpOrder = (props: HelpOrderParams) => {
39
39
  onActionLeft={goToBack}
40
40
  btnStyle={{ paddingLeft: 0 }}
41
41
  showCall={false}
42
- buttonProps={{
43
- bgColor: theme.colors.white,
44
- borderColor: theme.colors.white,
45
- textStyle: { color: theme.colors.btnFont }
46
- }}
47
42
  />
48
43
  <Content>
49
44
  <OText mBottom={20}>
@@ -49,11 +49,8 @@ export const Home = (props: any) => {
49
49
  </OText>
50
50
  <OButton
51
51
  text={t('LOGIN_NOW', 'Login now')}
52
- bgColor={theme.colors.primary}
53
- borderColor={theme.colors.primary}
54
52
  style={styles.buttons}
55
53
  isCircle={false}
56
- textStyle={{ color: 'white' }}
57
54
  onClick={() => onNavigationRedirect('Login')}
58
55
  imgRightSrc={null}
59
56
  />
@@ -145,9 +145,6 @@ export const Otp = (props: otpParams) => {
145
145
  </TouchableOpacity>
146
146
  <OButton
147
147
  onClick={() => handleCloseOtp()}
148
- bgColor={theme.colors.white}
149
- borderColor={theme.colors.primary}
150
- textStyle={{ color: theme.colors.primary }}
151
148
  style={{ borderRadius: 8, width: '100%' }}
152
149
  text={t('CANCEL', 'Cancel')}
153
150
  />
@@ -412,11 +412,6 @@ const LoginFormUI = (props: LoginParams) => {
412
412
  btnStyle={{ paddingLeft: 0 }}
413
413
  titleWrapStyle={{ paddingHorizontal: 0 }}
414
414
  titleStyle={{ marginRight: 0, marginLeft: 0 }}
415
- buttonProps={{
416
- bgColor: theme.colors.white,
417
- borderColor: theme.colors.white,
418
- textStyle: { color: theme.colors.btnFont }
419
- }}
420
415
  />
421
416
  )}
422
417
  <FormSide>
@@ -711,9 +706,6 @@ const LoginFormUI = (props: LoginParams) => {
711
706
  <OButton
712
707
  onClick={handleSubmit(onSubmit)}
713
708
  text={loginTab !== 'otp' ? loginButtonText : t('GET_VERIFY_CODE', 'Get verify code')}
714
- bgColor={theme.colors.primary}
715
- borderColor={theme.colors.primary}
716
- textStyle={{ color: 'white' }}
717
709
  imgRightSrc={null}
718
710
  isLoading={formState.loading}
719
711
  style={{ borderRadius: 7.6, marginTop: 10, marginBottom: 25 }}
@@ -752,7 +744,6 @@ const LoginFormUI = (props: LoginParams) => {
752
744
  <OButton
753
745
  onClick={handleVerifyCodeClick}
754
746
  text={t('GET_VERIFY_CODE', 'Get Verify Code')}
755
- borderColor={theme.colors.primary}
756
747
  style={loginStyle.btnOutline}
757
748
  imgRightSrc={null}
758
749
  isLoading={isLoadingVerifyModal}
@@ -266,11 +266,6 @@ export const MessageListing = (props: MessageListingParams) => {
266
266
  showCall={false}
267
267
  paddingTop={Platform.OS === 'ios' ? 20 : 10}
268
268
  btnStyle={{ paddingLeft: 0 }}
269
- buttonProps={{
270
- bgColor: theme.colors.white,
271
- borderColor: theme.colors.white,
272
- textStyle: { color: theme.colors.btnFont }
273
- }}
274
269
  />
275
270
  <OrderListing
276
271
  ordersLength={{ activeOrdersLength: 0, previousOrdersLength: 0 }}
@@ -343,11 +343,6 @@ const MomentOptionUI = (props: MomentOptionParams) => {
343
343
  titleAlign={'center'}
344
344
  titleStyle={{ fontSize: 20, marginRight: 0, marginLeft: 0 }}
345
345
  titleWrapStyle={{ paddingHorizontal: 0 }}
346
- buttonProps={{
347
- bgColor: theme.colors.white,
348
- borderColor: theme.colors.white,
349
- textStyle: { color: theme.colors.btnFont }
350
- }}
351
346
  />
352
347
  )}
353
348
  {(preorderMinimumDays === 0 && preorderLeadTime === 0) || !cateringPreorder && (
@@ -476,12 +471,10 @@ const MomentOptionUI = (props: MomentOptionParams) => {
476
471
  <View style={{ position: 'absolute', bottom: bottom, paddingBottom: 20, paddingHorizontal: 20, backgroundColor: 'white', width: '100%' }}>
477
472
  <OButton
478
473
  onClick={() => handleChangeMoment()}
479
- bgColor={theme.colors.primary}
480
- borderColor={theme.colors.primary}
481
474
  isDisabled={!selectedTime}
482
475
  text={t('CONTINUE', 'Continue')}
483
476
  style={{ borderRadius: 7.6, height: 44, shadowOpacity: 0 }}
484
- textStyle={{ color: 'white', fontSize: 14 }}
477
+ textStyle={{ fontSize: 14 }}
485
478
  showNextIcon
486
479
  />
487
480
  </View>
@@ -394,7 +394,6 @@ const MultiCheckoutUI = (props: any) => {
394
394
  </OText>
395
395
  <OButton
396
396
  text={t('SIGN_UP', 'Sign up')}
397
- textStyle={{ color: theme.colors.white }}
398
397
  style={{ borderRadius: 7.6, marginTop: 20 }}
399
398
  onClick={() => setOpenModal({ ...openModal, signup: true })}
400
399
  />
@@ -101,6 +101,7 @@ export const MultiOrdersDetailsUI = (props: any) => {
101
101
  style={styles.btnBackArrow}
102
102
  onClick={() => handleArrowBack()}
103
103
  icon={AntDesignIcon}
104
+ useArrow
104
105
  iconProps={{
105
106
  name: 'arrowleft',
106
107
  size: 26
@@ -101,11 +101,6 @@ export const MyOrders = (props: any) => {
101
101
  showCall={false}
102
102
  paddingTop={30}
103
103
  btnStyle={{ paddingLeft: 0 }}
104
- buttonProps={{
105
- bgColor: theme.colors.white,
106
- borderColor: theme.colors.white,
107
- textStyle: { color: theme.colors.btnFont }
108
- }}
109
104
  />
110
105
  )}
111
106
  </View>
@@ -44,7 +44,6 @@ interface Props {
44
44
  isVertical?: boolean,
45
45
  noMargin?: any
46
46
  hideArrowLeft?: boolean
47
- buttonProps?: any
48
47
  }
49
48
 
50
49
  const NavBar = (props: Props) => {
@@ -65,7 +64,7 @@ const NavBar = (props: Props) => {
65
64
  <Wrapper style={{ paddingTop: props.paddingTop, ...{ flexDirection: props.isVertical ? 'column' : 'row', alignItems: props.isVertical ? 'flex-start' : 'center' }, ...props.style }}>
66
65
  {!props.hideArrowLeft && (
67
66
  <OButton
68
- {...props.buttonProps}
67
+ useArrow
69
68
  iconProps={{
70
69
  name: 'arrowleft',
71
70
  size: 26
@@ -116,8 +115,6 @@ const NavBar = (props: Props) => {
116
115
  {props.showCall
117
116
  ? (<OButton
118
117
  isCircle={true}
119
- bgColor={theme.colors.primary}
120
- borderColor={theme.colors.primary}
121
118
  imgRightSrc={null}
122
119
  imgLeftStyle={{ tintColor: 'white', width: 30, height: 30 }}
123
120
  imgLeftSrc={theme.images.general.support}
@@ -45,15 +45,10 @@ export const NetworkError = (props: NoNetworkParams) => {
45
45
  />
46
46
  <OButton
47
47
  text={t('REFRESH', 'Refresh')}
48
- bgColor={theme.colors.primary}
49
- borderColor={theme.colors.primary}
50
48
  style={{
51
49
  borderRadius: 8,
52
50
  marginTop: 45
53
51
  }}
54
- textStyle={{
55
- color: theme.colors.white
56
- }}
57
52
  onClick={() => RNRestart.Restart()}
58
53
  />
59
54
  </ImageContainer>
@@ -42,11 +42,8 @@ export const NotFoundSource = (props: NotFoundSourceParams) => {
42
42
  <View style={{ marginTop: 10, width: '100%' }}>
43
43
  <OButton
44
44
  style={{ width: '100%', height: 50, ...btnStyle }}
45
- bgColor={theme.colors.primary}
46
- borderColor={theme.colors.primary}
47
45
  onClick={() => onClickButton()}
48
46
  text={btnTitle}
49
- textStyle={{ color: theme.colors.white }}
50
47
  />
51
48
  </View>
52
49
  )}
@@ -75,11 +75,6 @@ const NotificationsUI = (props: any) => {
75
75
  showCall={false}
76
76
  style={{ paddingVertical: 0 }}
77
77
  btnStyle={{ paddingLeft: 0 }}
78
- buttonProps={{
79
- bgColor: theme.colors.white,
80
- borderColor: theme.colors.white,
81
- textStyle: { color: theme.colors.btnFont }
82
- }}
83
78
  />
84
79
  {showCustomerPromotions && showNotifications && (
85
80
  <>
@@ -145,10 +145,10 @@ export const OrderHistory = (props: any) => {
145
145
  </>
146
146
  )
147
147
  : message.change?.attribute === 'prepared_in' ? (
148
- <>
149
- {t('TIME_ADDED_BY_BUSINESS', 'Time added by business')}{'\n'}
150
- {formatSeconds(parseInt(message.change.new, 10))}
151
- </>
148
+ <>
149
+ {t('TIME_ADDED_BY_BUSINESS', 'Time added by business')}{'\n'}
150
+ {formatSeconds(parseInt(message.change.new, 10))}
151
+ </>
152
152
  ) : t(ORDER_STATUS[parseInt(message.change.new, 10)])
153
153
  }
154
154
  </OText>
@@ -170,11 +170,9 @@ export const OrderHistory = (props: any) => {
170
170
  ))}
171
171
  <OButton
172
172
  text={enableReview ? t('REVIEW_ORDER', 'Review order') : t('CONTINUE', 'Continue')}
173
- textStyle={{ fontSize: 14, color: theme.colors.white }}
173
+ textStyle={{ fontSize: 14 }}
174
174
  imgRightSrc={theme.images.general.arrow_right}
175
175
  imgRightStyle={{ tintColor: theme.colors.white, right: 5, margin: 5 }}
176
- borderColor='transparent'
177
- bgColor={theme.colors.primary}
178
176
  style={{ borderRadius: 7.6, borderWidth: 1, height: 44, shadowOpacity: 0, marginBottom: 30, marginTop: 20 }}
179
177
  onClick={() => handleReview()}
180
178
  />
@@ -643,7 +643,6 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
643
643
  <OButton
644
644
  text={t('GET_DIRECTIONS', 'Get Directions')}
645
645
  imgRightSrc=''
646
- textStyle={{ color: theme.colors.white }}
647
646
  style={{
648
647
  alignSelf: 'center',
649
648
  borderRadius: 10,
@@ -833,7 +832,6 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
833
832
  text={t('YOUR_ORDERS', 'Your Orders')}
834
833
  textStyle={{ fontSize: 14, color: theme.colors.primary }}
835
834
  imgRightSrc={null}
836
- borderColor={theme.colors.primary}
837
835
  bgColor={theme.colors.clear}
838
836
  style={{ borderRadius: 7.6, borderWidth: 1, height: 44, shadowOpacity: 0 }}
839
837
  parentStyle={{ marginTop: 29, marginEnd: 15 }}
@@ -31,9 +31,9 @@ const OrderTypeSelectorUI = (props: OrderTypeSelectParams) => {
31
31
  const [orderState] = useOrder();
32
32
  const [, t] = useLanguage();
33
33
  const _orderTypes = orderTypes.filter((type: any) => configTypes?.includes(type.value));
34
- const orderTypeTitle = (type : string) => theme?.header?.components?.order_types?.components?.[type]?.components?.title
35
- const orderTypeDescription = (type : string) => theme?.header?.components?.order_types?.components?.[type]?.components?.description
36
- const orderTypeCallAction = (type : string) => theme?.header?.components?.order_types?.components?.[type]?.components?.call_to_action
34
+ const orderTypeTitle = (type: string) => theme?.header?.components?.order_types?.components?.[type]?.components?.title
35
+ const orderTypeDescription = (type: string) => theme?.header?.components?.order_types?.components?.[type]?.components?.description
36
+ const orderTypeCallAction = (type: string) => theme?.header?.components?.order_types?.components?.[type]?.components?.call_to_action
37
37
  const items = _orderTypes.map((type) => {
38
38
  return {
39
39
  value: type.value,
@@ -103,11 +103,6 @@ const OrderTypeSelectorUI = (props: OrderTypeSelectParams) => {
103
103
  title={t('HOW_WILL_YOU_DELIVERY_TYPE', 'How will your order type?')}
104
104
  titleAlign={'center'}
105
105
  noMargin
106
- buttonProps={{
107
- bgColor: theme.colors.white,
108
- borderColor: theme.colors.white,
109
- textStyle: { color: theme.colors.btnFont }
110
- }}
111
106
  />
112
107
  {
113
108
  items.length > 0 && (
@@ -131,7 +131,6 @@ const PaymentOptionStripeUI = (props: any) => {
131
131
  bgColor={theme.colors.backgroundGray}
132
132
  borderColor={theme.colors.backgroundGray}
133
133
  style={styles.btnAddStyle}
134
- textStyle={{ color: 'white' }}
135
134
  imgRightSrc={null}
136
135
  onClick={() => setAddCardOpen(true)}
137
136
  />
@@ -141,7 +140,6 @@ const PaymentOptionStripeUI = (props: any) => {
141
140
  text={t('CANCEL', 'Cancel')}
142
141
  bgColor={theme.colors.backgroundGray}
143
142
  borderColor={theme.colors.backgroundGray}
144
- textStyle={{ color: 'white' }}
145
143
  style={styles.btnAction}
146
144
  imgRightSrc={null}
147
145
  onClick={() => onCancel()}
@@ -150,9 +148,6 @@ const PaymentOptionStripeUI = (props: any) => {
150
148
  <View style={{ width: '48%' }}>
151
149
  <OButton
152
150
  text={t('ACCEPT', 'Accept')}
153
- bgColor={theme.colors.primary}
154
- borderColor={theme.colors.primary}
155
- textStyle={{ color: 'white' }}
156
151
  style={styles.btnAction}
157
152
  imgRightSrc={null}
158
153
  isDisabled={!cardSelected || cardsList?.cards?.length === 0}
@@ -326,7 +326,6 @@ const PaymentOptionsUI = (props: any) => {
326
326
  <OButton
327
327
  text={t('ADD_PAYMENT_CARD', 'Add New Payment Card')}
328
328
  bgColor={theme.colors.white}
329
- borderColor={theme.colors.primary}
330
329
  style={styles.btnAddStyle}
331
330
  textStyle={{ color: theme.colors.primary, fontSize: 12 }}
332
331
  imgRightSrc={null}
@@ -426,7 +425,6 @@ const PaymentOptionsUI = (props: any) => {
426
425
  <OButton
427
426
  text={t('ADD_PAYMENT_CARD', 'Add New Payment Card')}
428
427
  bgColor={theme.colors.white}
429
- borderColor={theme.colors.primary}
430
428
  style={styles.btnAddStyle}
431
429
  textStyle={{ color: theme.colors.primary, fontSize: 12 }}
432
430
  imgRightSrc={null}
@@ -236,9 +236,7 @@ const PlaceSpotUI = (props: PlaceSpotParams) => {
236
236
  <View style={{ alignItems: 'flex-start' }}>
237
237
  <OButton
238
238
  onClick={() => onChangeSpot()}
239
- bgColor={theme.colors.primary}
240
- borderColor={theme.colors.primary}
241
- textStyle={{ color: 'white', fontSize: 12 }}
239
+ textStyle={{ fontSize: 12 }}
242
240
  imgRightSrc={null}
243
241
  text={t('UPDATE_SPOT_NUMBER', 'Update')}
244
242
  isDisabled={(!spotNumber && !Object.values(vehicle).every(e => e))}
@@ -27,7 +27,7 @@ export const PreviousOrders = (props: PreviousOrdersParams) => {
27
27
 
28
28
  const [, t] = useLanguage();
29
29
 
30
- const pastOrders = [1, 2, 5, 6, 10, 11, 12, 15, 16, 17]
30
+ const pastOrders = [1, 2, 5, 6, 10, 11, 12, 15, 16, 17]
31
31
 
32
32
  return (
33
33
  <View style={{ marginBottom: 30 }}>
@@ -49,9 +49,6 @@ export const PreviousOrders = (props: PreviousOrdersParams) => {
49
49
  onClick={loadMoreOrders}
50
50
  text={t('LOAD_MORE_ORDERS', 'Load more orders')}
51
51
  imgRightSrc={null}
52
- bgColor={theme.colors.primary}
53
- borderColor={theme.colors.primary}
54
- textStyle={{ color: theme.colors.white }}
55
52
  style={{ borderRadius: 7.6, shadowOpacity: 0, marginTop: 20 }}
56
53
  />
57
54
  </WrappButton>
@@ -59,11 +59,11 @@ export const ActionButton = (props: any) => {
59
59
  }`}
60
60
  isDisabled={isSoldOut || maxProductQuantity <= 0 || (product?.minimum_per_order && ((productCart?.quantity + productAddedToCartLength) < product?.minimum_per_order)) || (product?.maximum_per_order && ((productCart?.quantity + productAddedToCartLength) > product?.maximum_per_order))}
61
61
  textStyle={{
62
- color: saveErrors || isSoldOut || maxProductQuantity <= 0 ? theme.colors.primary : theme.colors.white,
62
+ color: theme.colors.white,
63
63
  fontSize: orderState.loading || editMode ? 10 : 14
64
64
  }}
65
65
  bgColor={buttonColor ? theme.colors.lightGray : theme.colors.primary}
66
- borderColor={!buttonColor ? theme.colors.white : theme.colors.primary}
66
+ borderColor={buttonColor ? theme.colors.lightGray : theme.colors.primary}
67
67
  style={{
68
68
  opacity: saveErrors || isSoldOut || maxProductQuantity <= 0 ? 0.3 : 1,
69
69
  borderRadius: 7.6,
@@ -96,10 +96,9 @@ export const ActionButton = (props: any) => {
96
96
  : t('LOGIN_SIGNUP', 'Login / Sign Up')
97
97
  }
98
98
  imgRightSrc=""
99
- textStyle={{ color: theme.colors.primary, fontSize: 13, textAlign: 'center' }}
99
+ textStyle={{ fontSize: 13, textAlign: 'center', color: theme.colors.primary }}
100
100
  style={{
101
101
  height: 42,
102
- borderColor: theme.colors.primary,
103
102
  backgroundColor: theme.colors.white,
104
103
  paddingLeft: 0,
105
104
  paddingRight: 0