ordering-ui-react-native 0.16.21 → 0.16.22-release
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 +7 -4
- package/src/DeliveryApp.tsx +43 -1
- package/src/components/ActiveOrders/index.tsx +61 -63
- package/src/components/ActiveOrders/styles.tsx +8 -14
- package/src/components/AddressForm/index.tsx +18 -2
- package/src/components/BusinessBasicInformation/index.tsx +11 -19
- package/src/components/BusinessController/index.tsx +10 -8
- package/src/components/BusinessInformation/index.tsx +33 -4
- package/src/components/BusinessInformation/styles.tsx +2 -2
- package/src/components/BusinessProductsList/index.tsx +10 -10
- package/src/components/BusinessesListing/index.tsx +1 -1
- package/src/components/Checkout/index.tsx +2 -1
- package/src/components/LanguageSelector/index.tsx +21 -16
- package/src/components/LoginForm/index.tsx +118 -30
- package/src/components/LoginForm/styles.tsx +6 -0
- package/src/components/Messages/index.tsx +2 -2
- package/src/components/NotificationSetting/index.tsx +85 -0
- package/src/components/OrderDetails/index.tsx +2 -20
- package/src/components/OrdersOption/index.tsx +54 -56
- package/src/components/PaymentOptions/index.tsx +335 -365
- package/src/components/PaymentOptionsWebView/index.tsx +120 -121
- package/src/components/ReviewDriver/index.tsx +1 -1
- package/src/components/ReviewOrder/index.tsx +2 -1
- package/src/components/ReviewProducts/index.tsx +11 -0
- package/src/components/SignupForm/index.tsx +143 -61
- package/src/components/SingleProductReview/index.tsx +8 -5
- package/src/components/StripeElementsForm/index.tsx +25 -16
- package/src/components/VerifyPhone/styles.tsx +1 -2
- package/src/components/shared/OBottomPopup.tsx +6 -2
- package/src/index.tsx +2 -0
- package/src/pages/BusinessesListing.tsx +7 -6
- package/src/pages/OrderDetails.tsx +1 -1
- package/src/pages/ReviewDriver.tsx +2 -2
- package/src/pages/ReviewOrder.tsx +2 -2
- package/src/theme.json +0 -1
- package/src/types/@fatnlazycat/react-native-recaptcha-v3/index.d.ts +1 -0
- package/src/types/index.tsx +13 -9
- package/src/utils/index.tsx +0 -1
- package/themes/business/index.tsx +4 -0
- package/themes/business/src/components/BusinessController/index.tsx +2 -2
- package/themes/business/src/components/Chat/index.tsx +42 -34
- package/themes/business/src/components/DriverMap/index.tsx +7 -5
- package/themes/business/src/components/DriverSchedule/index.tsx +71 -0
- package/themes/business/src/components/DriverSchedule/styles.tsx +6 -0
- package/themes/business/src/components/LoginForm/index.tsx +111 -74
- package/themes/business/src/components/MapView/index.tsx +12 -1
- package/themes/business/src/components/MessagesOption/index.tsx +11 -1
- package/themes/business/src/components/OrderDetails/Business.tsx +1 -1
- package/themes/business/src/components/OrderDetails/Delivery.tsx +3 -3
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +25 -19
- package/themes/business/src/components/OrdersListManager/index.tsx +10 -3
- package/themes/business/src/components/OrdersOption/index.tsx +65 -21
- package/themes/business/src/components/OrdersOption/styles.tsx +5 -1
- package/themes/business/src/components/OrdersOptionBusiness/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionCity/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionDate/index.tsx +19 -6
- package/themes/business/src/components/OrdersOptionDelivery/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionDriver/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionPaymethod/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionStatus/index.tsx +10 -1
- package/themes/business/src/components/PreviousMessages/index.tsx +17 -18
- package/themes/business/src/components/PreviousOrders/index.tsx +21 -23
- package/themes/business/src/components/ProductItemAccordion/index.tsx +5 -4
- package/themes/business/src/components/ReviewCustomer/index.tsx +1 -1
- package/themes/business/src/components/ScheduleBlocked/index.tsx +53 -0
- package/themes/business/src/components/UserFormDetails/index.tsx +5 -2
- package/themes/business/src/components/UserProfileForm/index.tsx +28 -4
- package/themes/business/src/components/shared/ODropDown.tsx +42 -8
- package/themes/business/src/components/shared/ODropDownCalendar.tsx +36 -7
- package/themes/business/src/components/shared/OModal.tsx +40 -37
- package/themes/business/src/types/index.tsx +15 -9
- package/themes/business/src/utils/index.tsx +10 -0
- package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
- package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
- package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
- package/themes/kiosk/src/components/BusinessMenu/index.tsx +2 -1
- package/themes/kiosk/src/components/CartItem/index.tsx +4 -3
- package/themes/kiosk/src/components/CategoriesMenu/index.tsx +1 -0
- package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
- package/themes/kiosk/src/components/DrawerView/index.tsx +1 -0
- package/themes/kiosk/src/components/DrawerView/styles.tsx +2 -2
- package/themes/kiosk/src/components/LoginForm/index.tsx +121 -10
- package/themes/kiosk/src/components/LoginForm/styles.tsx +5 -0
- package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
- package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
- package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +8 -10
- package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
- package/themes/kiosk/src/types/index.d.ts +2 -0
- package/themes/original/index.tsx +12 -0
- package/themes/original/src/components/AddressForm/index.tsx +136 -133
- package/themes/original/src/components/AddressList/index.tsx +1 -1
- package/themes/original/src/components/AppleLogin/index.tsx +4 -4
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +302 -160
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +6 -2
- package/themes/original/src/components/BusinessController/index.tsx +173 -108
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +8 -6
- package/themes/original/src/components/BusinessListingSearch/BusinessControllerSkeletons/index.tsx +57 -0
- package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/index.tsx +59 -0
- package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/styles.tsx +13 -0
- package/themes/original/src/components/BusinessListingSearch/index.tsx +106 -126
- package/themes/original/src/components/BusinessListingSearch/styles.tsx +18 -13
- package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/index.tsx +87 -0
- package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/styles.tsx +12 -0
- package/themes/original/src/components/BusinessProductsList/index.tsx +49 -52
- package/themes/original/src/components/BusinessProductsList/styles.tsx +0 -3
- package/themes/original/src/components/BusinessProductsListing/index.tsx +287 -175
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +22 -8
- package/themes/original/src/components/BusinessReviews/index.tsx +6 -1
- package/themes/original/src/components/BusinessTypeFilter/index.tsx +109 -40
- package/themes/original/src/components/BusinessTypeFilter/styles.tsx +2 -0
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +561 -0
- package/themes/original/src/components/BusinessesListing/{styles.tsx → Layout/Appointment/styles.tsx} +24 -10
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +676 -0
- package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +137 -0
- package/themes/original/src/components/BusinessesListing/index.tsx +105 -519
- package/themes/original/src/components/Cart/index.tsx +42 -10
- package/themes/original/src/components/Cart/styles.tsx +4 -0
- package/themes/original/src/components/CartContent/index.tsx +22 -16
- package/themes/original/src/components/Checkout/index.tsx +106 -66
- package/themes/original/src/components/Checkout/styles.tsx +0 -1
- package/themes/original/src/components/DriverTips/index.tsx +4 -4
- package/themes/original/src/components/DriverTips/styles.tsx +2 -1
- package/themes/original/src/components/Favorite/index.tsx +1 -0
- package/themes/original/src/components/Favorite/styles.tsx +1 -0
- package/themes/original/src/components/FavoriteList/index.tsx +142 -93
- package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
- package/themes/original/src/components/GPSButton/index.tsx +20 -19
- package/themes/original/src/components/GoogleMap/index.tsx +20 -12
- package/themes/original/src/components/HelpAccountAndPayment/index.tsx +8 -3
- package/themes/original/src/components/HelpGuide/index.tsx +8 -3
- package/themes/original/src/components/HelpOrder/index.tsx +8 -3
- package/themes/original/src/components/LanguageSelector/index.tsx +19 -14
- package/themes/original/src/components/LoginForm/Otp/index.tsx +3 -2
- package/themes/original/src/components/LoginForm/index.tsx +82 -44
- package/themes/original/src/components/Messages/index.tsx +17 -17
- package/themes/original/src/components/MomentSelector/index.tsx +197 -0
- package/themes/original/src/components/MomentSelector/styles.tsx +6 -0
- package/themes/original/src/components/MultiCheckout/index.tsx +6 -0
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +20 -16
- package/themes/original/src/components/MyOrders/index.tsx +68 -6
- package/themes/original/src/components/NavBar/index.tsx +15 -9
- package/themes/original/src/components/NetworkError/index.tsx +5 -3
- package/themes/original/src/components/NotFoundSource/index.tsx +2 -1
- package/themes/original/src/components/Notifications/index.tsx +148 -0
- package/themes/original/src/components/Notifications/styles.tsx +17 -0
- package/themes/original/src/components/OrderDetails/OrderHistory.tsx +167 -0
- package/themes/original/src/components/OrderDetails/index.tsx +200 -42
- package/themes/original/src/components/OrderDetails/styles.tsx +15 -2
- package/themes/original/src/components/OrderItAgain/index.tsx +75 -0
- package/themes/original/src/components/OrderItAgain/styles.tsx +10 -0
- package/themes/original/src/components/OrderProgress/index.tsx +8 -2
- package/themes/original/src/components/OrderSummary/index.tsx +1 -34
- package/themes/original/src/components/OrderTypeSelector/index.tsx +85 -36
- package/themes/original/src/components/OrderTypeSelector/styles.tsx +19 -1
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +100 -106
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +17 -12
- package/themes/original/src/components/OrdersOption/index.tsx +71 -55
- package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
- package/themes/original/src/components/PaymentOptions/index.tsx +57 -37
- package/themes/original/src/components/PhoneInputNumber/index.tsx +4 -10
- package/themes/original/src/components/PlaceSpot/index.tsx +243 -47
- package/themes/original/src/components/PlaceSpot/styles.tsx +0 -2
- package/themes/original/src/components/PreviousOrders/index.tsx +3 -2
- package/themes/original/src/components/ProductForm/index.tsx +712 -655
- package/themes/original/src/components/ProductForm/styles.tsx +9 -7
- package/themes/original/src/components/ProductItemAccordion/index.tsx +198 -127
- package/themes/original/src/components/ProductOption/index.tsx +1 -1
- package/themes/original/src/components/ProfessionalFilter/index.tsx +129 -0
- package/themes/original/src/components/ProfessionalFilter/styles.tsx +0 -0
- package/themes/original/src/components/ProfessionalProfile/index.tsx +309 -0
- package/themes/original/src/components/ProfessionalProfile/styles.tsx +46 -0
- package/themes/original/src/components/ReviewDriver/index.tsx +6 -6
- package/themes/original/src/components/ReviewOrder/index.tsx +18 -3
- package/themes/original/src/components/ReviewProducts/index.tsx +1 -1
- package/themes/original/src/components/ReviewTrigger/index.tsx +118 -0
- package/themes/original/src/components/ReviewTrigger/styles.tsx +34 -0
- package/themes/original/src/components/SearchBar/index.tsx +5 -3
- package/themes/original/src/components/ServiceForm/index.tsx +631 -0
- package/themes/original/src/components/ServiceForm/styles.tsx +50 -0
- package/themes/original/src/components/SignupForm/index.tsx +350 -206
- package/themes/original/src/components/SingleOrderCard/index.tsx +214 -179
- package/themes/original/src/components/SingleProductCard/index.tsx +194 -108
- package/themes/original/src/components/SingleProductCard/styles.tsx +2 -2
- package/themes/original/src/components/SingleProductReview/index.tsx +38 -5
- package/themes/original/src/components/SingleProductReview/styles.tsx +12 -0
- package/themes/original/src/components/StripeElementsForm/index.tsx +15 -7
- package/themes/original/src/components/UpsellingProducts/index.tsx +14 -4
- package/themes/original/src/components/UserDetails/index.tsx +31 -17
- package/themes/original/src/components/UserFormDetails/index.tsx +74 -81
- package/themes/original/src/components/UserProfile/index.tsx +57 -29
- package/themes/original/src/components/UserProfile/styles.ts +17 -0
- package/themes/original/src/components/UserProfileForm/index.tsx +15 -10
- package/themes/original/src/components/WalletTransactions/index.tsx +76 -0
- package/themes/original/src/components/WalletTransactions/styles.tsx +13 -0
- package/themes/original/src/components/Wallets/index.tsx +174 -162
- package/themes/original/src/components/Wallets/styles.tsx +10 -8
- package/themes/original/src/components/shared/OBottomPopup.tsx +47 -14
- package/themes/original/src/components/shared/OButton.tsx +10 -3
- package/themes/original/src/components/shared/OIcon.tsx +8 -1
- package/themes/original/src/components/shared/OInput.tsx +3 -2
- package/themes/original/src/layouts/FloatingBottomContainer.tsx +5 -1
- package/themes/original/src/types/index.tsx +124 -30
- package/themes/original/src/utils/index.tsx +77 -0
- package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
|
@@ -5,6 +5,7 @@ import { useForm, Controller } from 'react-hook-form';
|
|
|
5
5
|
import { PhoneInputNumber } from '../PhoneInputNumber';
|
|
6
6
|
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
7
7
|
import Recaptcha from 'react-native-recaptcha-that-works'
|
|
8
|
+
import ReCaptcha from '@fatnlazycat/react-native-recaptcha-v3'
|
|
8
9
|
|
|
9
10
|
import {
|
|
10
11
|
LoginForm as LoginFormController,
|
|
@@ -102,7 +103,7 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
102
103
|
|
|
103
104
|
const googleLoginEnabled = configs?.google_login_enabled?.value === '1' || !configs?.google_login_enabled?.enabled
|
|
104
105
|
const facebookLoginEnabled = configs?.facebook_login_enabled?.value === '1' || !configs?.facebook_login_enabled?.enabled
|
|
105
|
-
|
|
106
|
+
const appleLoginEnabled = configs?.apple_login_enabled?.value === '1' || !configs?.apple_login_enabled?.enabled
|
|
106
107
|
|
|
107
108
|
const loginStyle = StyleSheet.create({
|
|
108
109
|
btnOutline: {
|
|
@@ -235,7 +236,7 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
235
236
|
|
|
236
237
|
const onRecaptchaVerify = (token: any) => {
|
|
237
238
|
setRecaptchaVerified(true)
|
|
238
|
-
handleReCaptcha(token)
|
|
239
|
+
handleReCaptcha({ code: token, version: recaptchaConfig?.version })
|
|
239
240
|
}
|
|
240
241
|
|
|
241
242
|
const handleChangeOtpType = (type: string) => {
|
|
@@ -256,7 +257,7 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
256
257
|
})
|
|
257
258
|
}
|
|
258
259
|
|
|
259
|
-
const handleCategoryScroll = (opc
|
|
260
|
+
const handleCategoryScroll = (opc: string) => {
|
|
260
261
|
tabsRef.current.scrollTo({
|
|
261
262
|
x: tabLayouts?.[opc]?.x - 40,
|
|
262
263
|
animated: true
|
|
@@ -272,15 +273,39 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
272
273
|
|
|
273
274
|
useEffect(() => {
|
|
274
275
|
if (configs && Object.keys(configs).length > 0 && enableReCaptcha) {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
if (configs?.security_recaptcha_type?.value === 'v3' &&
|
|
277
|
+
configs?.security_recaptcha_score_v3?.value > 0 &&
|
|
278
|
+
configs?.security_recaptcha_site_key_v3?.value
|
|
279
|
+
) {
|
|
280
|
+
setRecaptchaConfig({
|
|
281
|
+
version: 'v3',
|
|
282
|
+
siteKey: configs?.security_recaptcha_site_key_v3?.value || null,
|
|
283
|
+
baseUrl: configs?.security_recaptcha_base_url?.value || null
|
|
284
|
+
})
|
|
285
|
+
return
|
|
286
|
+
}
|
|
287
|
+
if (configs?.security_recaptcha_site_key?.value) {
|
|
288
|
+
setRecaptchaConfig({
|
|
289
|
+
version: 'v2',
|
|
290
|
+
siteKey: configs?.security_recaptcha_site_key?.value || null,
|
|
291
|
+
baseUrl: configs?.security_recaptcha_base_url?.value || null
|
|
292
|
+
})
|
|
293
|
+
}
|
|
279
294
|
}
|
|
280
295
|
}, [configs, enableReCaptcha])
|
|
281
296
|
|
|
282
297
|
useEffect(() => {
|
|
283
298
|
if (!formState.loading && formState.result?.error) {
|
|
299
|
+
if (formState.result?.result?.[0] === 'ERROR_AUTH_VERIFICATION_CODE') {
|
|
300
|
+
setRecaptchaVerified(false)
|
|
301
|
+
setRecaptchaConfig({
|
|
302
|
+
version: 'v2',
|
|
303
|
+
siteKey: configs?.security_recaptcha_site_key?.value || null,
|
|
304
|
+
baseUrl: configs?.security_recaptcha_base_url?.value || null
|
|
305
|
+
})
|
|
306
|
+
showToast(ToastType.Info, t('TRY_AGAIN', 'Please try again'))
|
|
307
|
+
return
|
|
308
|
+
}
|
|
284
309
|
formState.result?.result &&
|
|
285
310
|
showToast(
|
|
286
311
|
ToastType.Error,
|
|
@@ -351,15 +376,15 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
351
376
|
titleStyle={{ marginRight: 0, marginLeft: 0 }}
|
|
352
377
|
/>
|
|
353
378
|
<FormSide>
|
|
354
|
-
{((useLoginByEmail
|
|
379
|
+
{(Number(useLoginByEmail) + Number(useLoginByCellphone) + Number(useLoginOtpEmail) + Number(useLoginOtpCellphone) > 1) && (
|
|
355
380
|
<LoginWith>
|
|
356
381
|
<OTabs
|
|
357
|
-
horizontal
|
|
382
|
+
horizontal
|
|
358
383
|
showsHorizontalScrollIndicator={false}
|
|
359
384
|
ref={tabsRef}
|
|
360
385
|
>
|
|
361
386
|
{useLoginByEmail && (
|
|
362
|
-
<TabBtn
|
|
387
|
+
<TabBtn
|
|
363
388
|
onPress={() => handleChangeTab('email')}
|
|
364
389
|
onLayout={(event: any) => handleOnLayout(event, 'email')}
|
|
365
390
|
>
|
|
@@ -384,7 +409,7 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
384
409
|
</TabBtn>
|
|
385
410
|
)}
|
|
386
411
|
{useLoginByCellphone && (
|
|
387
|
-
<TabBtn
|
|
412
|
+
<TabBtn
|
|
388
413
|
onPress={() => handleChangeTab('cellphone')}
|
|
389
414
|
onLayout={(event: any) => handleOnLayout(event, 'cellphone')}
|
|
390
415
|
>
|
|
@@ -409,7 +434,7 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
409
434
|
</TabBtn>
|
|
410
435
|
)}
|
|
411
436
|
{useLoginOtpEmail && (
|
|
412
|
-
<TabBtn
|
|
437
|
+
<TabBtn
|
|
413
438
|
onPress={() => handleChangeOtpType('email')}
|
|
414
439
|
onLayout={(event: any) => handleOnLayout(event, 'otp_email')}
|
|
415
440
|
>
|
|
@@ -434,7 +459,7 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
434
459
|
</TabBtn>
|
|
435
460
|
)}
|
|
436
461
|
{useLoginOtpCellphone && (
|
|
437
|
-
<TabBtn
|
|
462
|
+
<TabBtn
|
|
438
463
|
onPress={() => handleChangeOtpType('cellphone')}
|
|
439
464
|
onLayout={(event: any) => handleOnLayout(event, 'otp_cellphone')}
|
|
440
465
|
>
|
|
@@ -596,35 +621,47 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
596
621
|
</TouchableOpacity>
|
|
597
622
|
)}
|
|
598
623
|
|
|
599
|
-
{enableReCaptcha && (
|
|
624
|
+
{(enableReCaptcha && recaptchaConfig?.version) && (
|
|
600
625
|
<>
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
{
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
626
|
+
{recaptchaConfig?.version === 'v3' ? (
|
|
627
|
+
<ReCaptcha
|
|
628
|
+
url={recaptchaConfig?.baseUrl}
|
|
629
|
+
siteKey={recaptchaConfig?.siteKey}
|
|
630
|
+
containerStyle={{ height: 40 }}
|
|
631
|
+
onExecute={onRecaptchaVerify}
|
|
632
|
+
reCaptchaType={1}
|
|
633
|
+
/>
|
|
634
|
+
) : (
|
|
635
|
+
<>
|
|
636
|
+
<TouchableOpacity
|
|
637
|
+
onPress={handleOpenRecaptcha}
|
|
638
|
+
>
|
|
639
|
+
<RecaptchaButton>
|
|
640
|
+
{recaptchaVerified ? (
|
|
641
|
+
<MaterialCommunityIcons
|
|
642
|
+
name="checkbox-marked"
|
|
643
|
+
size={26}
|
|
644
|
+
color={theme.colors.primary}
|
|
645
|
+
/>
|
|
646
|
+
) : (
|
|
647
|
+
<MaterialCommunityIcons
|
|
648
|
+
name="checkbox-blank-outline"
|
|
649
|
+
size={26}
|
|
650
|
+
color={theme.colors.mediumGray}
|
|
651
|
+
/>
|
|
652
|
+
)}
|
|
653
|
+
<OText size={14} mLeft={8}>{t('VERIFY_ReCAPTCHA', 'Verify reCAPTCHA')}</OText>
|
|
654
|
+
</RecaptchaButton>
|
|
655
|
+
</TouchableOpacity>
|
|
656
|
+
<Recaptcha
|
|
657
|
+
ref={recaptchaRef}
|
|
658
|
+
siteKey={recaptchaConfig?.siteKey}
|
|
659
|
+
baseUrl={recaptchaConfig?.baseUrl}
|
|
660
|
+
onVerify={onRecaptchaVerify}
|
|
661
|
+
onExpire={() => setRecaptchaVerified(false)}
|
|
662
|
+
/>
|
|
663
|
+
</>)
|
|
664
|
+
}
|
|
628
665
|
</>
|
|
629
666
|
)}
|
|
630
667
|
<OButton
|
|
@@ -682,8 +719,9 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
682
719
|
)}
|
|
683
720
|
|
|
684
721
|
{configs && Object.keys(configs).length > 0 ? (
|
|
685
|
-
(((configs?.facebook_login?.value === 'true' || configs?.facebook_login?.value === '1') && configs?.facebook_id?.value) ||
|
|
686
|
-
|
|
722
|
+
(((configs?.facebook_login?.value === 'true' || configs?.facebook_login?.value === '1') && configs?.facebook_id?.value && facebookLoginEnabled) ||
|
|
723
|
+
((configs?.google_login_client_id?.value !== '' && configs?.google_login_client_id?.value !== null) && googleLoginEnabled) ||
|
|
724
|
+
((configs?.apple_login_client_id?.value !== '' && configs?.apple_login_client_id?.value !== null) && appleLoginEnabled)) &&
|
|
687
725
|
(
|
|
688
726
|
<>
|
|
689
727
|
<View
|
|
@@ -707,7 +745,7 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
707
745
|
<ButtonsWrapper>
|
|
708
746
|
<SocialButtons>
|
|
709
747
|
{(configs?.facebook_login?.value === 'true' || configs?.facebook_login?.value === '1') &&
|
|
710
|
-
configs?.facebook_id?.value &&
|
|
748
|
+
configs?.facebook_id?.value &&
|
|
711
749
|
facebookLoginEnabled && (
|
|
712
750
|
<FacebookLogin
|
|
713
751
|
notificationState={notificationState}
|
|
@@ -5,6 +5,7 @@ import { launchImageLibrary } from 'react-native-image-picker'
|
|
|
5
5
|
import { GiftedChat, Actions, ActionsProps, InputToolbar, Composer, Send, Bubble, MessageImage, InputToolbarProps, ComposerProps } from 'react-native-gifted-chat'
|
|
6
6
|
import { USER_TYPE } from '../../config/constants'
|
|
7
7
|
import MaterialCommunityIcon from 'react-native-vector-icons/MaterialCommunityIcons'
|
|
8
|
+
import AntDesignIcon from 'react-native-vector-icons/AntDesign'
|
|
8
9
|
import { OIcon, OIconButton, OText, OButton } from '../shared'
|
|
9
10
|
import { TouchableOpacity, ActivityIndicator, StyleSheet, View, Platform, Keyboard } from 'react-native'
|
|
10
11
|
import { Header, TitleHeader, Wrapper, QuickMessageContainer, ProfileMessageHeader, MessageTypeItem } from './styles'
|
|
@@ -36,7 +37,7 @@ const ORDER_STATUS: any = {
|
|
|
36
37
|
20: 'ORDER_CUSTOMER_ALMOST_ARRIVED_BUSINESS',
|
|
37
38
|
21: 'ORDER_CUSTOMER_ARRIVED_BUSINESS',
|
|
38
39
|
22: 'ORDER_LOOKING_FOR_DRIVER',
|
|
39
|
-
|
|
40
|
+
23: 'ORDER_DRIVER_ON_WAY'
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
const filterSpecialStatus = ['prepared_in', 'delivered_in', 'delivery_datetime']
|
|
@@ -122,18 +123,17 @@ const MessagesUI = (props: MessagesParams) => {
|
|
|
122
123
|
|
|
123
124
|
const messageConsole = (message: any) => {
|
|
124
125
|
return message.change?.attribute !== 'driver_id'
|
|
125
|
-
?
|
|
126
|
-
`${t('ORDER', 'Order')} ${t(message.change.attribute.toUpperCase(), message.change.attribute.replace('_', ' '))} ${t('CHANGED_FROM', 'Changed from')} ${
|
|
127
|
-
filterSpecialStatus.includes(message.change.attribute) ?
|
|
128
|
-
`${message.change.old === null ? '0' : message.change.old} ${t('TO', 'to')} ${message.change.new} ${t('MINUTES', 'Minutes')}` :
|
|
129
|
-
`${message.change.old !== null && t(ORDER_STATUS[parseInt(message.change.old, 10)])} ${t('TO', 'to')} ${t(ORDER_STATUS[parseInt(message.change.new, 10)])}`
|
|
130
|
-
}`
|
|
131
|
-
: message.change.new
|
|
132
126
|
?
|
|
133
|
-
`${
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
127
|
+
`${t('ORDER', 'Order')} ${t(message.change.attribute.toUpperCase(), message.change.attribute.replace('_', ' '))} ${t('CHANGED_FROM', 'Changed from')} ${filterSpecialStatus.includes(message.change.attribute) ?
|
|
128
|
+
`${message.change.old === null ? '0' : message.change.old} ${t('TO', 'to')} ${message.change.new} ${t('MINUTES', 'Minutes')}` :
|
|
129
|
+
`${message.change.old !== null && t(ORDER_STATUS[parseInt(message.change.old, 10)])} ${t('TO', 'to')} ${t(ORDER_STATUS[parseInt(message.change.new, 10)])}`
|
|
130
|
+
}`
|
|
131
|
+
: message.change.new
|
|
132
|
+
?
|
|
133
|
+
`${message.driver?.name} ${message.driver?.lastname !== null ? message.driver.lastname : ''} ${t('WAS_ASSIGNED_AS_DRIVER', 'Was assigned as driver')} ${message.comment ? message.comment.length : ''}`
|
|
134
|
+
:
|
|
135
|
+
`${t('DRIVER_UNASSIGNED', 'Driver unassigned')}`
|
|
136
|
+
}
|
|
137
137
|
|
|
138
138
|
useEffect(() => {
|
|
139
139
|
let newMessages: Array<any> = []
|
|
@@ -402,7 +402,9 @@ const MessagesUI = (props: MessagesParams) => {
|
|
|
402
402
|
<Wrapper>
|
|
403
403
|
{!isMeesageListing ? (
|
|
404
404
|
<Header>
|
|
405
|
-
<
|
|
405
|
+
<TouchableOpacity onPress={onClose} style={{ paddingStart: 10, borderColor: theme.colors.clear }}>
|
|
406
|
+
<AntDesignIcon name='arrowleft' size={26} />
|
|
407
|
+
</TouchableOpacity>
|
|
406
408
|
<View style={{ marginRight: 10, shadowColor: theme.colors.black, shadowOpacity: 0.1, shadowOffset: { width: 0, height: 1 }, shadowRadius: 2 }}>
|
|
407
409
|
<OIcon
|
|
408
410
|
url={type === USER_TYPE.DRIVER ? order?.driver?.photo : order?.business?.logo}
|
|
@@ -419,10 +421,8 @@ const MessagesUI = (props: MessagesParams) => {
|
|
|
419
421
|
) : (
|
|
420
422
|
<ProfileMessageHeader>
|
|
421
423
|
<View style={{ ...styles.headerTitle }}>
|
|
422
|
-
<TouchableOpacity
|
|
423
|
-
|
|
424
|
-
onPress={onClose}>
|
|
425
|
-
<OIcon src={theme.images.general.arrow_left} width={16} />
|
|
424
|
+
<TouchableOpacity onPress={onClose} style={styles.headerItem}>
|
|
425
|
+
<AntDesignIcon name='arrowleft' size={26} />
|
|
426
426
|
</TouchableOpacity>
|
|
427
427
|
<OText size={18}>{t('ORDER', theme?.defaultLanguages?.ORDER || 'Order')} #{order?.id}</OText>
|
|
428
428
|
</View>
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react'
|
|
2
|
+
import { StyleSheet, View, Platform } from 'react-native'
|
|
3
|
+
import SelectDropdown from 'react-native-select-dropdown'
|
|
4
|
+
import { useTheme } from 'styled-components/native'
|
|
5
|
+
import {
|
|
6
|
+
MomentOption as MomentOptionController,
|
|
7
|
+
useConfig,
|
|
8
|
+
useUtils
|
|
9
|
+
} from 'ordering-components/native'
|
|
10
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
11
|
+
import IconAntDesign from 'react-native-vector-icons/AntDesign'
|
|
12
|
+
import { Container } from './styles'
|
|
13
|
+
import moment from 'moment'
|
|
14
|
+
|
|
15
|
+
const MomentSelectorUI = (props: any) => {
|
|
16
|
+
const {
|
|
17
|
+
datesList,
|
|
18
|
+
hoursList,
|
|
19
|
+
dateSelected,
|
|
20
|
+
timeSelected,
|
|
21
|
+
handleChangeDate,
|
|
22
|
+
handleChangeTime,
|
|
23
|
+
} = props
|
|
24
|
+
|
|
25
|
+
const theme = useTheme()
|
|
26
|
+
const { top } = useSafeAreaInsets()
|
|
27
|
+
const [{ configs }] = useConfig()
|
|
28
|
+
const [{ parseTime }] = useUtils()
|
|
29
|
+
|
|
30
|
+
const [customizedDateList, setCustomizedDateList] = useState([])
|
|
31
|
+
const [customizedTimeList, setCustomizedTimeList] = useState([])
|
|
32
|
+
|
|
33
|
+
const is12hours = configs?.dates_moment_format?.value?.includes('hh:mm')
|
|
34
|
+
|
|
35
|
+
const styles = StyleSheet.create({
|
|
36
|
+
selectOption: {
|
|
37
|
+
width: '100%',
|
|
38
|
+
backgroundColor: theme.colors.backgroundGray100,
|
|
39
|
+
paddingVertical: 5,
|
|
40
|
+
paddingHorizontal: 14,
|
|
41
|
+
flexDirection: 'row-reverse',
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
justifyContent: 'space-between',
|
|
44
|
+
height: 30
|
|
45
|
+
},
|
|
46
|
+
selectWrapper: {
|
|
47
|
+
flex: 1
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
const updatedDatesList = datesList?.map((date: any) => {
|
|
53
|
+
return { value: moment(date).format('MMM DD, YYYY'), key: date }
|
|
54
|
+
})
|
|
55
|
+
setCustomizedDateList(updatedDatesList)
|
|
56
|
+
}, [datesList])
|
|
57
|
+
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
if (hoursList?.length > 0) {
|
|
60
|
+
|
|
61
|
+
const updatedHoursList = hoursList?.map((hour: any) => {
|
|
62
|
+
const timeValue = is12hours ? (
|
|
63
|
+
hour?.startTime?.includes('12')
|
|
64
|
+
? `${hour.startTime}PM`
|
|
65
|
+
: parseTime(moment(hour.startTime, 'HH:mm'), { outputFormat: 'hh:mma' })
|
|
66
|
+
) : (
|
|
67
|
+
parseTime(moment(hour.startTime, 'HH:mm'), { outputFormat: 'HH:mm' })
|
|
68
|
+
)
|
|
69
|
+
return { value: timeValue, key: hour.startTime }
|
|
70
|
+
})
|
|
71
|
+
setCustomizedTimeList(updatedHoursList)
|
|
72
|
+
}
|
|
73
|
+
}, [hoursList])
|
|
74
|
+
|
|
75
|
+
const dropDownIcon = () => {
|
|
76
|
+
return (
|
|
77
|
+
<IconAntDesign
|
|
78
|
+
name='down'
|
|
79
|
+
color={theme.colors.textThird}
|
|
80
|
+
size={12}
|
|
81
|
+
/>
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return (
|
|
86
|
+
<Container>
|
|
87
|
+
<View style={styles.selectWrapper}>
|
|
88
|
+
<SelectDropdown
|
|
89
|
+
defaultValue={customizedDateList?.find((item: any) => item.key === dateSelected)}
|
|
90
|
+
data={customizedDateList}
|
|
91
|
+
onSelect={(selectedItem, index) => {
|
|
92
|
+
handleChangeDate(selectedItem?.key)
|
|
93
|
+
}}
|
|
94
|
+
buttonTextAfterSelection={(selectedItem, index) => {
|
|
95
|
+
return selectedItem?.value
|
|
96
|
+
}}
|
|
97
|
+
rowTextForSelection={(item, index) => {
|
|
98
|
+
return item.value
|
|
99
|
+
}}
|
|
100
|
+
buttonStyle={{borderTopLeftRadius: 7.6, borderBottomLeftRadius: 7.6, ...styles.selectOption}}
|
|
101
|
+
buttonTextStyle={{
|
|
102
|
+
color: theme.colors.disabled,
|
|
103
|
+
fontSize: 12,
|
|
104
|
+
textAlign: 'left',
|
|
105
|
+
marginHorizontal: 0
|
|
106
|
+
}}
|
|
107
|
+
dropdownStyle={{
|
|
108
|
+
borderRadius: 8,
|
|
109
|
+
borderColor: theme.colors.lightGray,
|
|
110
|
+
marginTop: Platform.OS === 'ios' ? 12 : -top
|
|
111
|
+
}}
|
|
112
|
+
rowStyle={{
|
|
113
|
+
borderBottomColor: theme.colors.backgroundGray100,
|
|
114
|
+
backgroundColor: theme.colors.backgroundGray100,
|
|
115
|
+
height: 30,
|
|
116
|
+
flexDirection: 'column',
|
|
117
|
+
alignItems: 'flex-start',
|
|
118
|
+
paddingTop: 8,
|
|
119
|
+
paddingHorizontal: 12
|
|
120
|
+
}}
|
|
121
|
+
rowTextStyle={{
|
|
122
|
+
color: theme.colors.disabled,
|
|
123
|
+
fontSize: 12,
|
|
124
|
+
marginHorizontal: 0
|
|
125
|
+
}}
|
|
126
|
+
renderDropdownIcon={() => dropDownIcon()}
|
|
127
|
+
dropdownOverlayColor='transparent'
|
|
128
|
+
/>
|
|
129
|
+
</View>
|
|
130
|
+
<View style={styles.selectWrapper}>
|
|
131
|
+
<SelectDropdown
|
|
132
|
+
defaultValue={customizedTimeList?.find((item: any) => item.key === timeSelected)}
|
|
133
|
+
data={customizedTimeList}
|
|
134
|
+
onSelect={(selectedItem, index) => {
|
|
135
|
+
handleChangeTime(selectedItem.key)
|
|
136
|
+
}}
|
|
137
|
+
buttonTextAfterSelection={(selectedItem, index) => {
|
|
138
|
+
return selectedItem.value
|
|
139
|
+
}}
|
|
140
|
+
rowTextForSelection={(item, index) => {
|
|
141
|
+
return item.value
|
|
142
|
+
}}
|
|
143
|
+
buttonStyle={{borderTopRightRadius: 7.6, borderBottomRightRadius: 7.6, ...styles.selectOption}}
|
|
144
|
+
buttonTextStyle={{
|
|
145
|
+
color: theme.colors.disabled,
|
|
146
|
+
fontSize: 12,
|
|
147
|
+
textAlign: 'left',
|
|
148
|
+
marginHorizontal: 0
|
|
149
|
+
}}
|
|
150
|
+
dropdownStyle={{
|
|
151
|
+
borderRadius: 8,
|
|
152
|
+
borderColor: theme.colors.lightGray,
|
|
153
|
+
marginTop: Platform.OS === 'ios' ? 12 : -top
|
|
154
|
+
}}
|
|
155
|
+
rowStyle={{
|
|
156
|
+
borderBottomColor: theme.colors.backgroundGray100,
|
|
157
|
+
backgroundColor: theme.colors.backgroundGray100,
|
|
158
|
+
height: 30,
|
|
159
|
+
flexDirection: 'column',
|
|
160
|
+
alignItems: 'flex-start',
|
|
161
|
+
paddingTop: 8,
|
|
162
|
+
paddingHorizontal: 14
|
|
163
|
+
}}
|
|
164
|
+
rowTextStyle={{
|
|
165
|
+
color: theme.colors.disabled,
|
|
166
|
+
fontSize: 12,
|
|
167
|
+
marginHorizontal: 0
|
|
168
|
+
}}
|
|
169
|
+
renderDropdownIcon={() => dropDownIcon()}
|
|
170
|
+
dropdownOverlayColor='transparent'
|
|
171
|
+
/>
|
|
172
|
+
</View>
|
|
173
|
+
</Container>
|
|
174
|
+
)
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export const MomentSelector = (props: any) => {
|
|
178
|
+
const [{ configs }] = useConfig()
|
|
179
|
+
|
|
180
|
+
const limitDays = parseInt(configs?.max_days_preorder?.value, 10)
|
|
181
|
+
|
|
182
|
+
const currentDate = new Date()
|
|
183
|
+
const time = limitDays > 1
|
|
184
|
+
? currentDate.getTime() + ((limitDays - 1) * 24 * 60 * 60 * 1000)
|
|
185
|
+
: limitDays === 1 ? currentDate.getTime() : currentDate.getTime() + (6 * 24 * 60 * 60 * 1000)
|
|
186
|
+
|
|
187
|
+
currentDate.setTime(time)
|
|
188
|
+
currentDate.setHours(23)
|
|
189
|
+
currentDate.setMinutes(59)
|
|
190
|
+
|
|
191
|
+
const businessPreorderProps = {
|
|
192
|
+
...props,
|
|
193
|
+
UIComponent: MomentSelectorUI,
|
|
194
|
+
maxDate: currentDate
|
|
195
|
+
}
|
|
196
|
+
return <MomentOptionController {...businessPreorderProps} />
|
|
197
|
+
}
|
|
@@ -79,6 +79,7 @@ const MultiCheckoutUI = (props: any) => {
|
|
|
79
79
|
const isPreOrder = configs?.preorder_status_enabled?.value === '1'
|
|
80
80
|
const maximumCarts = 5
|
|
81
81
|
const isDisablePlaceOrderButton = !(paymethodSelected?.paymethod_id || paymethodSelected?.wallet_id) || openCarts.length > maximumCarts
|
|
82
|
+
const walletCarts = (Object.values(carts)?.filter((cart: any) => cart?.products && cart?.products?.length && cart?.status !== 2 && cart?.valid_schedule && cart?.valid_products && cart?.valid_address && cart?.valid_maximum && cart?.valid_minimum && cart?.wallets) || null) || []
|
|
82
83
|
|
|
83
84
|
const [isUserDetailsEdit, setIsUserDetailsEdit] = useState(false);
|
|
84
85
|
const [phoneUpdate, setPhoneUpdate] = useState(false);
|
|
@@ -253,6 +254,11 @@ const MultiCheckoutUI = (props: any) => {
|
|
|
253
254
|
</OText>
|
|
254
255
|
</CCNotCarts>
|
|
255
256
|
)}
|
|
257
|
+
{walletCarts.length > 0 && (
|
|
258
|
+
<OText size={14} color={theme.colors.danger5} style={{ marginVertical: 20 }}>
|
|
259
|
+
{t('WARNING_PARTIAL_WALLET_CARTS', 'Important: One or more carts can`t be completed due a partial payment with cash/points wallet and requires to be paid individually')}
|
|
260
|
+
</OText>
|
|
261
|
+
)}
|
|
256
262
|
{openCarts.length > 0 && (
|
|
257
263
|
<ChCartsTotal>
|
|
258
264
|
<View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { useEffect } from 'react'
|
|
2
|
-
import { useLanguage, useUtils, useToast,
|
|
3
|
-
import { View, StyleSheet, BackHandler } from 'react-native'
|
|
2
|
+
import { useLanguage, useUtils, useToast, ToastType, MultiOrdersDetails as MultiOrdersDetailsController } from 'ordering-components/native'
|
|
3
|
+
import { View, StyleSheet, BackHandler, TouchableOpacity } from 'react-native'
|
|
4
4
|
import { useTheme } from 'styled-components/native'
|
|
5
5
|
import { OText, OButton } from '../shared'
|
|
6
6
|
import { Container } from '../../layouts/Container'
|
|
7
7
|
import { Placeholder, PlaceholderLine, Fade } from 'rn-placeholder'
|
|
8
8
|
import { SingleOrderCard } from './SingleOrderCard'
|
|
9
|
+
import AntDesignIcon from 'react-native-vector-icons/AntDesign'
|
|
9
10
|
|
|
10
11
|
import {
|
|
11
12
|
OrdersDetailsContainer,
|
|
@@ -29,20 +30,20 @@ export const MultiOrdersDetailsUI = (props: any) => {
|
|
|
29
30
|
} = props
|
|
30
31
|
|
|
31
32
|
const theme = useTheme()
|
|
32
|
-
|
|
33
|
+
const styles = StyleSheet.create({
|
|
33
34
|
btnBackArrow: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
borderWidth: 0,
|
|
36
|
+
backgroundColor: theme.colors.clear,
|
|
37
|
+
shadowColor: theme.colors.clear,
|
|
38
|
+
padding: 0,
|
|
38
39
|
marginLeft: -20
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
},
|
|
41
|
+
})
|
|
42
|
+
|
|
42
43
|
const { loading, orders, error } = props.ordersList
|
|
43
44
|
const [, t] = useLanguage()
|
|
44
45
|
const [{ parsePrice, parseNumber, parseDate }] = useUtils();
|
|
45
|
-
|
|
46
|
+
const [, { showToast }] = useToast();
|
|
46
47
|
|
|
47
48
|
const walletName: any = {
|
|
48
49
|
cash: {
|
|
@@ -60,7 +61,7 @@ export const MultiOrdersDetailsUI = (props: any) => {
|
|
|
60
61
|
}
|
|
61
62
|
navigation.navigate('BusinessList');
|
|
62
63
|
return true
|
|
63
|
-
|
|
64
|
+
}
|
|
64
65
|
|
|
65
66
|
const handleGoToOrderDetails = (uuid: any) => {
|
|
66
67
|
navigation.navigate('OrderDetails', { orderId: uuid })
|
|
@@ -68,7 +69,7 @@ export const MultiOrdersDetailsUI = (props: any) => {
|
|
|
68
69
|
|
|
69
70
|
useEffect(() => {
|
|
70
71
|
if (error) {
|
|
71
|
-
|
|
72
|
+
showToast(ToastType.Error, error)
|
|
72
73
|
}
|
|
73
74
|
}, [error])
|
|
74
75
|
|
|
@@ -83,11 +84,14 @@ export const MultiOrdersDetailsUI = (props: any) => {
|
|
|
83
84
|
<OrdersDetailsContainer keyboardShouldPersistTaps="handled" contentContainerStyle={{ paddingHorizontal: 40 }}>
|
|
84
85
|
<View style={{ flexDirection: 'row' }}>
|
|
85
86
|
<OButton
|
|
86
|
-
imgLeftSrc={theme.images.general.arrow_left}
|
|
87
87
|
imgRightSrc={null}
|
|
88
88
|
style={styles.btnBackArrow}
|
|
89
89
|
onClick={() => handleArrowBack()}
|
|
90
|
-
|
|
90
|
+
icon={AntDesignIcon}
|
|
91
|
+
iconProps={{
|
|
92
|
+
name: 'arrowleft',
|
|
93
|
+
size: 26
|
|
94
|
+
}}
|
|
91
95
|
/>
|
|
92
96
|
</View>
|
|
93
97
|
<Header>
|
|
@@ -202,7 +206,7 @@ export const MultiOrdersDetailsUI = (props: any) => {
|
|
|
202
206
|
</Row>
|
|
203
207
|
<Row>
|
|
204
208
|
<OText size={12} lineHeight={18} weight={'400'} color={theme.colors.textNormal}>
|
|
205
|
-
|
|
209
|
+
{t('ESTIMATED_TAX_TO_BE_COLLECTED', 'Estimated tax to be collected')}:
|
|
206
210
|
</OText>
|
|
207
211
|
<OText size={12} lineHeight={18} weight={'400'} color={theme.colors.textNormal}>
|
|
208
212
|
{parsePrice(ordersSummary?.tax)}
|