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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.22.51",
3
+ "version": "0.22.53",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -136,8 +136,20 @@ const MapViewComponent = (props: MapViewParams) => {
136
136
  const RenderMarker = ({ marker, customer, orderIds }: { marker: any, customer?: boolean, orderIds?: Array<number> }) => {
137
137
  const markerRef = useRef<any>()
138
138
 
139
- let coordinateLat = (customer ? marker?.customer?.location?.lat || 0 : marker?.business?.location?.lat || 0) ?? (initialPosition?.latitude || 0)
140
- let coordinateLng = (customer ? marker?.customer?.location?.lng || 0 : marker?.business?.location?.lng || 0) ?? (initialPosition?.longitude || 0)
139
+ let coordinateLat = (customer
140
+ ? typeof marker?.customer?.location?.lat === 'number' && !Number.isNaN(marker?.customer?.location?.lat)
141
+ ? marker?.customer?.location?.lat
142
+ : 0
143
+ : typeof marker?.business?.location?.lat === 'number' && !Number.isNaN(marker?.business?.location?.lat)
144
+ ? marker?.business?.location?.lat
145
+ : 0) ?? (initialPosition?.latitude || 0)
146
+ let coordinateLng = (customer
147
+ ? typeof marker?.customer?.location?.lng === 'number' && !Number.isNaN(marker?.customer?.location?.lng)
148
+ ? marker?.customer?.location?.lng
149
+ : 0
150
+ : typeof marker?.business?.location?.lng === 'number' && !Number.isNaN(marker?.business?.location?.lng)
151
+ ? marker?.business?.location?.lng
152
+ : 0) ?? (initialPosition?.longitude || 0)
141
153
 
142
154
  useEffect(() => {
143
155
  if (
@@ -157,8 +169,8 @@ const MapViewComponent = (props: MapViewParams) => {
157
169
  }}
158
170
  onPress={() =>
159
171
  setLocationSelected({
160
- latitude: customer ? marker?.customer?.location?.lat : marker?.business?.location?.lat,
161
- longitude: customer ? marker?.customer?.location?.lng : marker?.business?.location?.lng
172
+ latitude: coordinateLat,
173
+ longitude: coordinateLng
162
174
  })
163
175
  }
164
176
  ref={(ref) => markerRef.current = ref}
@@ -240,8 +252,8 @@ const MapViewComponent = (props: MapViewParams) => {
240
252
  ref={mapRef}
241
253
  provider={PROVIDER_GOOGLE}
242
254
  initialRegion={{
243
- latitude: initialPosition?.latitude,
244
- longitude: initialPosition?.longitude,
255
+ latitude: initialPosition?.latitude || 0,
256
+ longitude: initialPosition?.longitude || 0,
245
257
  latitudeDelta: haveOrders ? 0.01 : 0.1,
246
258
  longitudeDelta: haveOrders ? 0.01 * ASPECT_RATIO : 0.1 * ASPECT_RATIO,
247
259
  }}
@@ -271,8 +283,8 @@ const MapViewComponent = (props: MapViewParams) => {
271
283
  ))}
272
284
  <Marker
273
285
  coordinate={{
274
- latitude: location.lat,
275
- longitude: location.lng,
286
+ latitude: typeof location.lat === 'number' && !Number.isNaN(location.lat) ? location.lat : 0,
287
+ longitude: typeof location.lng === 'number' && !Number.isNaN(location.lng) ? location.lng : 0,
276
288
  }}
277
289
  title={t('YOUR_LOCATION', 'Your Location')}
278
290
  >
@@ -44,17 +44,25 @@ const SoundPlayerComponent = (props: any) => {
44
44
  const id = setInterval(() => setCount(count + 1), 2500)
45
45
 
46
46
  const playSound = async () => {
47
- SoundPlayer.playUrl(URL_SOUND)
48
- await new Promise(resolve => setTimeout(resolve, DELAY_SOUND))
49
- SoundPlayer.stop()
47
+ try {
48
+ SoundPlayer.playUrl(URL_SOUND)
49
+ await new Promise(resolve => setTimeout(resolve, DELAY_SOUND))
50
+ SoundPlayer.stop()
51
+ } catch (err: any) {
52
+ console.log('Sound Error - ', err.message)
53
+ }
50
54
  }
51
55
  if (NativeModules?.RNSoundPlayer?.playUrl && typeof URL_SOUND === 'string' && isEnabledReadStorage) {
52
56
  playSound()
53
57
  }
54
58
 
55
59
  return () => {
56
- SoundPlayer.stop()
57
60
  clearInterval(id);
61
+ try {
62
+ SoundPlayer.stop()
63
+ } catch (err: any) {
64
+ console.log('Sound Error - ', err.message)
65
+ }
58
66
  }
59
67
  }, [count, isEnabledReadStorage])
60
68
 
@@ -4,8 +4,10 @@ import { useTheme } from 'styled-components/native';
4
4
 
5
5
  const Wrapper = styled.View`
6
6
  border-radius: 10px;
7
- border: 1px solid ${(props: any) => props.theme.colors.lightGray};
7
+ border-width: 1px;
8
+ border-color: ${(props: any) => props.theme.colors.lightGray};
8
9
  `;
10
+
9
11
  const Inner = styled.TextInput`
10
12
  height: 100px;
11
13
  padding: 5px 10px 5px 10px;
@@ -29,16 +31,13 @@ const OTextarea = (props: Props) => {
29
31
  ref={props.textTareaRef}
30
32
  onFocus={() => props.onFocus()}
31
33
  onChangeText={(txt: any) => props.onChange(txt)}
32
- textAlignVertical={'top'}
33
34
  placeholder={props.placeholder}
34
- placeholderTextColor={theme.colors.arrowColor}
35
- numberOfLines={props.lines}
36
- underlineColorAndroid={'transparent'}
37
- value={props.value}
35
+ placeholderTextColor={theme.colors.lightGray}
36
+ numberOfLines={props.lines}
37
+ underlineColorAndroid={'transparent'}
38
+ value={props.value}
39
+ multiline={true}
38
40
  autoFocus={props.autoFocus}
39
- multiline={true}
40
- selectionColor={theme.colors.primary}
41
- color={theme.colors.textGray}
42
41
  />
43
42
  </Wrapper>
44
43
  );
@@ -542,11 +542,6 @@ const AddressFormUI = (props: AddressFormParams) => {
542
542
  style={{ marginTop: Platform.OS === 'ios' ? 0 : 10 }}
543
543
  titleWrapStyle={{ paddingHorizontal: 0, width: '100%' }}
544
544
  titleStyle={{ marginRight: 0, marginLeft: 0, paddingRight: 5 }}
545
- buttonProps={{
546
- bgColor: theme.colors.white,
547
- borderColor: theme.colors.white,
548
- textStyle: { color: theme.colors.btnFont }
549
- }}
550
545
  />
551
546
  </View>
552
547
  <TouchableWithoutFeedback onPress={Keyboard.dismiss}>
@@ -857,9 +852,6 @@ const AddressFormUI = (props: AddressFormParams) => {
857
852
  : t('LOADING', 'Loading')
858
853
  }
859
854
  onClick={handleSubmit(onSubmit)}
860
- bgColor={theme.colors.primary}
861
- borderColor={theme.colors.primary}
862
- textStyle={{ color: theme.colors.white }}
863
855
  isDisabled={formState.loading}
864
856
  style={{ borderRadius: 7.6, shadowOpacity: 0 }}
865
857
  showNextIcon
@@ -895,9 +887,6 @@ const AddressFormUI = (props: AddressFormParams) => {
895
887
  )}
896
888
  <OButton
897
889
  text={t('SAVE', 'Save')}
898
- textStyle={{ color: theme.colors.white }}
899
- bgColor={theme.colors.primary}
900
- borderColor={theme.colors.primary}
901
890
  imgRightSrc={null}
902
891
  style={{ marginHorizontal: 30, marginBottom: 10 }}
903
892
  onClick={() => setSaveMapLocation(true)}
@@ -152,11 +152,6 @@ const AddressListUI = (props: AddressListParams) => {
152
152
  showCall={false}
153
153
  paddingTop={10}
154
154
  btnStyle={{ paddingLeft: 0 }}
155
- buttonProps={{
156
- bgColor: theme.colors.white,
157
- borderColor: theme.colors.white,
158
- textStyle: { color: theme.colors.btnFont }
159
- }}
160
155
  />
161
156
  )}
162
157
  {
@@ -178,11 +173,6 @@ const AddressListUI = (props: AddressListParams) => {
178
173
  style={{ marginTop: 0 }}
179
174
  titleWrapStyle={{ paddingHorizontal: 0 }}
180
175
  titleStyle={{ marginLeft: 0, marginRight: 0 }}
181
- buttonProps={{
182
- bgColor: theme.colors.white,
183
- borderColor: theme.colors.white,
184
- textStyle: { color: theme.colors.btnFont }
185
- }}
186
176
  />
187
177
  )}
188
178
  {addressList.loading && addressList?.addresses?.length === 0 && (
@@ -305,10 +295,7 @@ const AddressListUI = (props: AddressListParams) => {
305
295
  <OButton
306
296
  text={t('ADD_NEW_ADDRESS', 'Add new Address')}
307
297
  imgRightSrc=''
308
- bgColor={theme.colors.primary}
309
- textStyle={{ color: theme.colors.white }}
310
298
  style={styles.button}
311
- borderColor={theme.colors.primary}
312
299
  onClick={() => !afterSignup ? onNavigationRedirect(
313
300
  'AddressForm',
314
301
  {
@@ -57,6 +57,8 @@ export const BusinessItemAccordion = (props: any) => {
57
57
  return acc = acc
58
58
  }, cart?.subtotal)
59
59
 
60
+ const bgStyle = (subtotalWithTaxes < cart?.minimum || !cart?.valid_address) ? theme.colors.secundary : theme.colors.primary
61
+
60
62
  useEffect(() => {
61
63
  if (isActive && !isFromUpselling) {
62
64
  if (cart?.uuid !== viewedCart?.uuid) {
@@ -156,8 +158,8 @@ export const BusinessItemAccordion = (props: any) => {
156
158
  textStyle={{ color: 'white', textAlign: 'center', flex: 1 }}
157
159
  style={{ width: 180, flexDirection: 'row', justifyContent: 'center', borderRadius: 7.6, shadowOpacity: 0 }}
158
160
  text={t('CHECKOUT', 'Checkout')}
159
- bgColor={(subtotalWithTaxes < cart?.minimum || !cart?.valid_address) ? theme.colors.secundary : theme.colors.primary}
160
- borderColor={theme.colors.primary}
161
+ bgColor={bgStyle}
162
+ borderColor={bgStyle}
161
163
  isDisabled={checkoutButtonDisabled}
162
164
  />
163
165
  )}
@@ -47,13 +47,11 @@ export const BusinessSearchHeader = (props: any) => {
47
47
  borderWidth: 0,
48
48
  width: 26,
49
49
  height: 26,
50
- backgroundColor: '#FFF',
51
- borderColor: '#FFF',
52
- shadowColor: '#FFF',
53
50
  paddingLeft: 0,
54
51
  paddingRight: 0,
55
52
  marginTop: 50,
56
53
  }}
54
+ useArrow
57
55
  onClick={() => props.navigation.goBack()}
58
56
  icon={AntDesignIcon}
59
57
  iconProps={{
@@ -230,7 +230,7 @@ export const BusinessListingSearchUI = (props: BusinessSearchParams) => {
230
230
  </BusinessInfoItem>
231
231
  <OButton
232
232
  onClick={() => onBusinessClick(business)}
233
- textStyle={{ color: theme.colors.primary, fontSize: 10 }}
233
+ textStyle={{ fontSize: 10 }}
234
234
  text={t('GO_TO_STORE', 'Go to store')}
235
235
  style={{
236
236
  borderRadius: 23,
@@ -238,7 +238,6 @@ export const BusinessListingSearchUI = (props: BusinessSearchParams) => {
238
238
  paddingRight: 10,
239
239
  height: 23,
240
240
  shadowOpacity: 0,
241
- backgroundColor: theme.colors.primaryContrast,
242
241
  borderWidth: 0
243
242
  }}
244
243
  />
@@ -527,9 +527,6 @@ const BusinessPreorderUI = (props: BusinessPreorderParams) => {
527
527
  )}
528
528
  <OButton
529
529
  text={t('GO_TO_MENU', 'Go to menu')}
530
- textStyle={{ color: 'white' }}
531
- bgColor={theme.colors.primary}
532
- borderColor={theme.colors.primary}
533
530
  style={{ borderRadius: 7.6, marginBottom: 20, marginTop: 30 }}
534
531
  onClick={() => handleClickBusiness()}
535
532
  isDisabled={isAsap || !(dateSelected && timeSelected)}
@@ -555,21 +552,21 @@ export const BusinessPreorder = (props: any) => {
555
552
  currentDate.setMinutes(59)
556
553
 
557
554
  const cateringTypeString = orderState?.options?.type === 7
558
- ? 'catering_delivery'
559
- : orderState?.options?.type === 8
560
- ? 'catering_pickup'
561
- : null
555
+ ? 'catering_delivery'
556
+ : orderState?.options?.type === 8
557
+ ? 'catering_pickup'
558
+ : null
562
559
 
563
- const splitCateringValue = (configName : string) =>
564
- Object.values(props?.business?.configs || {})
565
- ?.find(config => config?.key === configName)
566
- ?.value?.split('|')
567
- ?.find(val => val.includes(cateringTypeString || ''))?.split(',')[1]
568
- const preorderSlotInterval = parseInt(splitCateringValue('preorder_slot_interval'))
569
- const preorderLeadTime = parseInt(splitCateringValue('preorder_lead_time'))
570
- const preorderTimeRange = parseInt(splitCateringValue('preorder_time_range'))
571
- const preorderMaximumDays = parseInt(splitCateringValue('preorder_maximum_days'))
572
- const preorderMinimumDays = parseInt(splitCateringValue('preorder_minimum_days'))
560
+ const splitCateringValue = (configName: string) =>
561
+ Object.values(props?.business?.configs || {})
562
+ ?.find(config => config?.key === configName)
563
+ ?.value?.split('|')
564
+ ?.find(val => val.includes(cateringTypeString || ''))?.split(',')[1]
565
+ const preorderSlotInterval = parseInt(splitCateringValue('preorder_slot_interval'))
566
+ const preorderLeadTime = parseInt(splitCateringValue('preorder_lead_time'))
567
+ const preorderTimeRange = parseInt(splitCateringValue('preorder_time_range'))
568
+ const preorderMaximumDays = parseInt(splitCateringValue('preorder_maximum_days'))
569
+ const preorderMinimumDays = parseInt(splitCateringValue('preorder_minimum_days'))
573
570
 
574
571
  const businessPreorderProps = {
575
572
  ...props,
@@ -558,9 +558,8 @@ const CartUI = (props: any) => {
558
558
  )}
559
559
  bgColor={(subtotalWithTaxes < cart?.minimum || !cart?.valid_address) ? theme.colors.secundary : theme.colors.primary}
560
560
  isDisabled={(openUpselling && !canOpenUpselling) || subtotalWithTaxes < cart?.minimum || !cart?.valid_address}
561
- borderColor={theme.colors.primary}
562
561
  imgRightSrc={null}
563
- textStyle={{ color: '#fff', textAlign: 'center', flex: 1 }}
562
+ textStyle={{ textAlign: 'center', flex: 1 }}
564
563
  onClick={() => handleClickCheckout()}
565
564
  style={{ width: '100%', flexDirection: 'row', justifyContent: 'center', borderRadius: 7.6, shadowOpacity: 0 }}
566
565
  />
@@ -175,9 +175,8 @@ export const CartContent = (props: any) => {
175
175
  text={t('CHECKOUT', 'Checkout')}
176
176
  bgColor={!cartsAvailable.length ? theme.colors.secundary : theme.colors.primary}
177
177
  isDisabled={!cartsAvailable.length}
178
- borderColor={theme.colors.primary}
178
+ borderColor={!cartsAvailable.length ? theme.colors.secundary : theme.colors.primary}
179
179
  imgRightSrc={null}
180
- textStyle={{ color: 'white', textAlign: 'center', flex: 1 }}
181
180
  onClick={() => handleCheckoutRedirect()}
182
181
  style={{ width: '100%', flexDirection: 'row', justifyContent: 'center', borderRadius: 7.6, shadowOpacity: 0 }}
183
182
  />
@@ -646,17 +646,11 @@ const CheckoutUI = (props: any) => {
646
646
  <HeaderTitle text={t('CUSTOMER_DETAILS', 'Customer details')} />
647
647
  <OButton
648
648
  text={t('SIGN_UP', 'Sign up')}
649
- textStyle={{ color: theme.colors.white }}
650
- bgColor={theme.colors.primary}
651
- borderColor={theme.colors.primary}
652
649
  style={{ borderRadius: 7.6, marginTop: 20 }}
653
650
  onClick={() => setOpenModal({ ...openModal, signup: true })}
654
651
  />
655
652
  <OButton
656
653
  text={t('LOGIN', 'Login')}
657
- textStyle={{ color: theme.colors.white }}
658
- bgColor={theme.colors.primary}
659
- borderColor={theme.colors.primary}
660
654
  style={{ borderRadius: 7.6, marginTop: 20 }}
661
655
  onClick={() => setOpenModal({ ...openModal, login: true })}
662
656
  />
@@ -69,10 +69,7 @@ export const CitiesControl = (props: any) => {
69
69
  </View>
70
70
  <OButton
71
71
  text={t('CONTINUE', 'Continue')}
72
- bgColor={theme.colors.primary}
73
- borderColor={theme.colors.primary}
74
72
  style={styles.btnStyle}
75
- textStyle={{ color: 'white' }}
76
73
  onClick={() => handleClick()}
77
74
  />
78
75
  </Container>
@@ -102,9 +102,7 @@ const CouponControlUI = (props: any) => {
102
102
  />
103
103
  <OButton
104
104
  onClick={() => onButtonApplyClick()}
105
- bgColor={theme.colors.primary}
106
- borderColor={theme.colors.primary}
107
- textStyle={{ color: 'white', fontSize: 12 }}
105
+ textStyle={{ fontSize: 12 }}
108
106
  imgRightSrc={null}
109
107
  text={t('APPLY', 'Apply')}
110
108
  isDisabled={!couponInput}
@@ -125,9 +125,7 @@ const DriverTipsUI = (props: any) => {
125
125
  />
126
126
  <OButton
127
127
  text={t('APPLY_TIP', 'Apply Tip')}
128
- bgColor={theme.colors.primary}
129
- borderColor={theme.colors.primary}
130
- textStyle={{ color: 'white', fontSize: 14 }}
128
+ textStyle={{ fontSize: 14 }}
131
129
  imgRightSrc={null}
132
130
  style={{ borderRadius: 5, height: 44 }}
133
131
  isDisabled={parseFloat(value || '0') < 0 || parseFloat(value || '0') === driverTip || value === ''}
@@ -44,11 +44,6 @@ export const Favorite = (props: any) => {
44
44
  paddingTop={Platform.OS === 'ios' ? 20 : 10}
45
45
  style={{ paddingVertical: 0 }}
46
46
  btnStyle={{ paddingLeft: 0 }}
47
- buttonProps={{
48
- bgColor: theme.colors.white,
49
- borderColor: theme.colors.white,
50
- textStyle: { color: theme.colors.btnFont }
51
- }}
52
47
  />
53
48
  <TabContainer>
54
49
  {tabList.map((menu, i) => (
@@ -270,7 +270,6 @@ const FavoriteListUI = (props: FavoriteParams) => {
270
270
  onClick={() => getFavoriteList(pagination?.currentPage + 1)}
271
271
  text={t('LOAD_MORE_ITEMS', 'Load more items')}
272
272
  imgRightSrc={null}
273
- textStyle={{ color: theme.colors.white }}
274
273
  style={{ borderRadius: 7.6, shadowOpacity: 0, marginTop: 20 }}
275
274
  />
276
275
  </WrappButton>
@@ -64,7 +64,7 @@ const ForgotPasswordUI = (props: any) => {
64
64
  handleReCaptcha(null)
65
65
  if (reCaptchaValue) return
66
66
 
67
- if (!recaptchaConfig?.siteKey) {
67
+ if (!recaptchaConfig?.siteKey) {
68
68
  showToast(ToastType.Error, t('NO_RECAPTCHA_SITE_KEY', 'The config doesn\'t have recaptcha site key'));
69
69
  return
70
70
  }
@@ -73,7 +73,7 @@ const ForgotPasswordUI = (props: any) => {
73
73
  return
74
74
  }
75
75
  recaptchaRef.current.open()
76
- }
76
+ }
77
77
 
78
78
  const onRecaptchaVerify = (token: any) => {
79
79
  setRecaptchaVerified(true)
@@ -92,8 +92,8 @@ const ForgotPasswordUI = (props: any) => {
92
92
  formState.result?.result && showToast(
93
93
  ToastType.Error,
94
94
  typeof formState.result?.result === 'string'
95
- ? formState.result?.result
96
- : formState.result?.result[0]
95
+ ? formState.result?.result
96
+ : formState.result?.result[0]
97
97
  )
98
98
  return
99
99
  }
@@ -125,11 +125,6 @@ const ForgotPasswordUI = (props: any) => {
125
125
  style={{ flexDirection: 'column', alignItems: 'flex-start' }}
126
126
  titleStyle={{ width: '100%', marginLeft: 0, paddingLeft: 0 }}
127
127
  titleWrapStyle={{ paddingHorizontal: 0, paddingStart: 0, flex: 1 }}
128
- buttonProps={{
129
- bgColor: theme.colors.white,
130
- borderColor: theme.colors.white,
131
- textStyle: { color: theme.colors.btnFont }
132
- }}
133
128
  />
134
129
  <FormSide>
135
130
  <OText
@@ -213,7 +208,6 @@ const ForgotPasswordUI = (props: any) => {
213
208
 
214
209
  <OButton
215
210
  text={emailSent && !formState.result?.error ? t('LINK_SEND_FORGOT_PASSWORD', 'Link Sent') : t('FRONT_RECOVER_PASSWORD', 'Recover Password')}
216
- textStyle={{ color: 'white' }}
217
211
  bgColor={emailSent && !formState.result?.error ? theme.colors.disabled : theme.colors.primary}
218
212
  borderColor={emailSent && !formState.result?.error ? theme.colors.disabled : theme.colors.primary}
219
213
  isLoading={formState.loading}
@@ -12,7 +12,7 @@ import {
12
12
  Container
13
13
  } from './styles'
14
14
 
15
- export const GiftCardUI = React.memo((props: any) => {
15
+ export const GiftCardUI = React.memo((props: any) => {
16
16
  const {
17
17
  navigation
18
18
  } = props
@@ -57,9 +57,7 @@ export const GiftCardUI = React.memo((props: any) => {
57
57
  <OButton
58
58
  onClick={() => setOpenModal('purchase')}
59
59
  text={t('PURCHASE', 'Purchase')}
60
- bgColor={theme.colors.primary}
61
- borderColor={theme.colors.primary}
62
- textStyle={{ color: 'white', fontSize: 13 }}
60
+ textStyle={{ fontSize: 13 }}
63
61
  imgRightSrc={null}
64
62
  style={{ ...style.btnStyle, marginRight: 14 }}
65
63
  />
@@ -76,26 +74,26 @@ export const GiftCardUI = React.memo((props: any) => {
76
74
  </View>
77
75
 
78
76
  <OModal
79
- open={openModal === 'purchase'}
80
- onClose={() => setOpenModal(null)}
81
- entireModal
77
+ open={openModal === 'purchase'}
78
+ onClose={() => setOpenModal(null)}
79
+ entireModal
82
80
  customClose
83
- >
84
- <PurchaseGiftCard
81
+ >
82
+ <PurchaseGiftCard
85
83
  handleCustomGoToCheckout={handleCustomGoToCheckout}
86
84
  onClose={() => setOpenModal(null)}
87
85
  />
88
- </OModal>
86
+ </OModal>
89
87
  <OModal
90
- open={openModal === 'redeem'}
91
- onClose={() => setOpenModal(null)}
92
- entireModal
88
+ open={openModal === 'redeem'}
89
+ onClose={() => setOpenModal(null)}
90
+ entireModal
93
91
  customClose
94
- >
95
- <RedeemGiftCard
92
+ >
93
+ <RedeemGiftCard
96
94
  onClose={() => setOpenModal(null)}
97
95
  />
98
- </OModal>
96
+ </OModal>
99
97
  </Container>
100
98
  )
101
- })
99
+ })
@@ -58,12 +58,10 @@ const PurchaseGiftCardUI = (props: any) => {
58
58
  borderWidth: 0,
59
59
  width: 26,
60
60
  height: 26,
61
- backgroundColor: '#FFF',
62
- borderColor: '#FFF',
63
- shadowColor: '#FFF',
64
61
  paddingLeft: 0,
65
62
  paddingRight: 0,
66
63
  }}
64
+ useArrow
67
65
  onClick={onClose}
68
66
  icon={AntDesignIcon}
69
67
  iconProps={{
@@ -113,9 +111,7 @@ const PurchaseGiftCardUI = (props: any) => {
113
111
  <OButton
114
112
  onClick={() => handleAccept()}
115
113
  text={t('ACCEPT', 'Accept')}
116
- bgColor={theme.colors.primary}
117
- borderColor={theme.colors.primary}
118
- textStyle={{ color: 'white', fontSize: 13 }}
114
+ textStyle={{ fontSize: 13 }}
119
115
  imgRightSrc={null}
120
116
  style={style.btnStyle}
121
117
  isDisabled={!selectedProduct}
@@ -130,4 +126,4 @@ export const PurchaseGiftCard = (props: any) => {
130
126
  UIComponent: PurchaseGiftCardUI
131
127
  }
132
128
  return <PurchaseGiftCardController {...purchaseGiftCardProps} />
133
- }
129
+ }