ordering-ui-react-native 0.16.87 → 0.16.88-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 +5 -5
- package/src/DeliveryApp.tsx +43 -1
- package/src/components/ActiveOrders/styles.tsx +8 -14
- package/src/components/BusinessInformation/index.tsx +19 -4
- package/src/components/BusinessInformation/styles.tsx +2 -2
- package/src/components/BusinessProductsList/index.tsx +1 -1
- package/src/components/BusinessesListing/index.tsx +1 -1
- package/src/components/OrderCreating/index.tsx +1 -21
- package/src/components/OrdersOption/index.tsx +54 -56
- package/src/components/PaymentOptionsWebView/index.tsx +119 -120
- package/src/components/SingleProductReview/index.tsx +7 -4
- package/src/components/VerifyPhone/styles.tsx +1 -2
- package/src/components/shared/OToast.tsx +4 -4
- package/src/utils/index.tsx +2 -1
- package/themes/business/index.tsx +2 -0
- package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +265 -240
- package/themes/business/src/components/AcceptOrRejectOrder/styles.tsx +6 -4
- package/themes/business/src/components/BusinessController/index.tsx +2 -2
- package/themes/business/src/components/Chat/index.tsx +31 -31
- package/themes/business/src/components/DriverMap/index.tsx +22 -9
- package/themes/business/src/components/GoogleMap/index.tsx +58 -57
- package/themes/business/src/components/LoginForm/Otp/index.tsx +120 -0
- package/themes/business/src/components/LoginForm/Otp/styles.tsx +7 -0
- package/themes/business/src/components/LoginForm/index.tsx +239 -80
- package/themes/business/src/components/LoginForm/styles.tsx +10 -0
- package/themes/business/src/components/MapView/index.tsx +18 -7
- package/themes/business/src/components/MessagesOption/index.tsx +11 -1
- package/themes/business/src/components/NewOrderNotification/index.tsx +31 -41
- package/themes/business/src/components/OrderDetails/Delivery.tsx +4 -3
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +96 -50
- package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +59 -62
- package/themes/business/src/components/OrderDetailsLogistic/index.tsx +195 -0
- package/themes/business/src/components/OrderDetailsLogistic/styles.tsx +5 -0
- package/themes/business/src/components/OrderMessage/index.tsx +18 -17
- package/themes/business/src/components/OrdersOption/index.tsx +79 -87
- 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/OrderItem.tsx +250 -0
- package/themes/business/src/components/PreviousOrders/OrdersGroupedItem.tsx +115 -0
- package/themes/business/src/components/PreviousOrders/index.tsx +447 -247
- package/themes/business/src/components/PreviousOrders/styles.tsx +31 -3
- package/themes/business/src/components/ProductItemAccordion/index.tsx +27 -3
- package/themes/business/src/components/ReviewCustomer/index.tsx +54 -27
- 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/OLink.tsx +33 -13
- package/themes/business/src/components/shared/OModal.tsx +16 -9
- package/themes/business/src/components/shared/OText.tsx +8 -2
- package/themes/business/src/types/index.tsx +35 -3
- package/themes/business/src/utils/index.tsx +53 -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/BusinessesListing/index.tsx +2 -1
- package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
- package/themes/kiosk/src/components/LoginForm/Otp/index.tsx +92 -0
- package/themes/kiosk/src/components/LoginForm/Otp/styles.tsx +7 -0
- package/themes/kiosk/src/components/LoginForm/index.tsx +473 -151
- package/themes/kiosk/src/components/LoginForm/styles.tsx +14 -1
- 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/PhoneInputNumber/index.tsx +1 -0
- package/themes/kiosk/src/components/PhoneInputNumber/styles.tsx +1 -3
- package/themes/kiosk/src/components/ProductForm/index.tsx +1 -14
- package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
- package/themes/kiosk/src/components/shared/OModal.tsx +14 -11
- package/themes/kiosk/src/layouts/Container.tsx +7 -1
- package/themes/kiosk/src/types/index.d.ts +13 -0
- package/themes/kiosk/src/utils/index.tsx +15 -0
- package/themes/original/index.tsx +8 -0
- package/themes/original/src/components/AddressDetails/index.tsx +10 -8
- package/themes/original/src/components/AddressForm/index.tsx +155 -139
- package/themes/original/src/components/AddressList/index.tsx +18 -18
- package/themes/original/src/components/AddressList/styles.tsx +4 -2
- package/themes/original/src/components/AppleLogin/index.tsx +4 -4
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +118 -76
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +1 -4
- package/themes/original/src/components/BusinessController/index.tsx +100 -47
- package/themes/original/src/components/BusinessController/styles.tsx +14 -9
- package/themes/original/src/components/BusinessInformation/index.tsx +10 -31
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +9 -3
- package/themes/original/src/components/BusinessListingSearch/index.tsx +87 -34
- package/themes/original/src/components/BusinessListingSearch/styles.tsx +6 -0
- package/themes/original/src/components/BusinessPreorder/index.tsx +96 -15
- package/themes/original/src/components/BusinessProductsList/index.tsx +10 -8
- package/themes/original/src/components/BusinessProductsList/styles.tsx +0 -3
- package/themes/original/src/components/BusinessProductsListing/index.tsx +564 -495
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +13 -12
- package/themes/original/src/components/BusinessTypeFilter/index.tsx +3 -2
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +2 -1
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +116 -81
- package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +1 -9
- package/themes/original/src/components/BusinessesListing/index.tsx +6 -6
- package/themes/original/src/components/Cart/index.tsx +83 -42
- package/themes/original/src/components/CartContent/index.tsx +77 -15
- package/themes/original/src/components/CartContent/styles.tsx +11 -1
- package/themes/original/src/components/Checkout/index.tsx +280 -173
- package/themes/original/src/components/Checkout/styles.tsx +4 -2
- package/themes/original/src/components/CitiesControl/index.tsx +89 -0
- package/themes/original/src/components/CitiesControl/styles.tsx +17 -0
- package/themes/original/src/components/DriverTips/index.tsx +52 -37
- package/themes/original/src/components/DriverTips/styles.tsx +2 -1
- package/themes/original/src/components/Favorite/index.tsx +7 -4
- package/themes/original/src/components/Favorite/styles.tsx +1 -1
- package/themes/original/src/components/FavoriteList/index.tsx +70 -80
- package/themes/original/src/components/FloatingButton/index.tsx +1 -2
- 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/GPSButton/styles.ts +3 -3
- package/themes/original/src/components/GoogleMap/index.tsx +10 -1
- package/themes/original/src/components/Help/index.tsx +8 -8
- package/themes/original/src/components/HelpAccountAndPayment/index.tsx +11 -22
- package/themes/original/src/components/HelpAccountAndPayment/styles.tsx +6 -0
- package/themes/original/src/components/HelpGuide/index.tsx +12 -16
- package/themes/original/src/components/HelpGuide/styles.tsx +6 -0
- package/themes/original/src/components/HelpOrder/index.tsx +12 -25
- package/themes/original/src/components/HelpOrder/styles.tsx +8 -1
- package/themes/original/src/components/LanguageSelector/index.tsx +19 -14
- package/themes/original/src/components/LastOrder/index.tsx +1 -34
- package/themes/original/src/components/LoginForm/Otp/index.tsx +89 -73
- package/themes/original/src/components/LoginForm/Otp/styles.tsx +0 -1
- package/themes/original/src/components/LoginForm/index.tsx +43 -19
- package/themes/original/src/components/LottieAnimation/index.tsx +78 -0
- package/themes/original/src/components/MessageListing/index.tsx +7 -40
- package/themes/original/src/components/Messages/index.tsx +26 -10
- package/themes/original/src/components/MomentOption/index.tsx +195 -88
- package/themes/original/src/components/MultiCart/index.tsx +50 -0
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +92 -93
- package/themes/original/src/components/MultiCheckout/index.tsx +193 -79
- package/themes/original/src/components/MultiOrdersDetails/SingleOrderCard.tsx +37 -224
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +67 -20
- package/themes/original/src/components/MultiOrdersDetails/styles.tsx +1 -1
- package/themes/original/src/components/MyOrders/index.tsx +66 -17
- package/themes/original/src/components/NavBar/index.tsx +6 -11
- 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 +144 -0
- package/themes/original/src/components/Notifications/styles.tsx +20 -0
- package/themes/original/src/components/OrderDetails/OrderEta.tsx +59 -0
- package/themes/original/src/components/OrderDetails/index.tsx +110 -221
- package/themes/original/src/components/OrderDetails/styles.tsx +10 -1
- package/themes/original/src/components/OrderItAgain/index.tsx +44 -42
- package/themes/original/src/components/OrderProgress/index.tsx +74 -112
- package/themes/original/src/components/OrderProgress/styles.tsx +5 -0
- package/themes/original/src/components/OrderSummary/index.tsx +52 -17
- package/themes/original/src/components/OrderTypeSelector/index.tsx +9 -3
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +29 -20
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +3 -0
- package/themes/original/src/components/OrdersOption/index.tsx +76 -83
- package/themes/original/src/components/PageBanner/index.tsx +146 -0
- package/themes/original/src/components/PageBanner/styles.tsx +11 -0
- package/themes/original/src/components/PaymentOptionStripe/styles.tsx +1 -1
- package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
- package/themes/original/src/components/PaymentOptions/index.tsx +2 -2
- package/themes/original/src/components/PhoneInputNumber/index.tsx +1 -1
- package/themes/original/src/components/PlaceSpot/index.tsx +12 -6
- package/themes/original/src/components/PreviousOrders/index.tsx +3 -2
- package/themes/original/src/components/ProductForm/index.tsx +240 -256
- package/themes/original/src/components/ProductForm/styles.tsx +5 -8
- package/themes/original/src/components/ProductItemAccordion/index.tsx +199 -128
- package/themes/original/src/components/ProductOptionSubOption/index.tsx +18 -10
- package/themes/original/src/components/ProductOptionSubOption/styles.tsx +1 -2
- package/themes/original/src/components/ProfessionalFilter/SingleProfessionalCard/index.tsx +108 -0
- package/themes/original/src/components/ProfessionalFilter/index.tsx +20 -49
- package/themes/original/src/components/ProfessionalProfile/index.tsx +54 -14
- package/themes/original/src/components/Promotions/index.tsx +234 -220
- package/themes/original/src/components/Promotions/styles.tsx +7 -2
- package/themes/original/src/components/ReviewDriver/index.tsx +3 -3
- package/themes/original/src/components/ReviewOrder/index.tsx +43 -11
- package/themes/original/src/components/ReviewOrder/styles.tsx +7 -0
- package/themes/original/src/components/ReviewProducts/index.tsx +8 -5
- package/themes/original/src/components/ReviewTrigger/index.tsx +27 -9
- package/themes/original/src/components/ReviewTrigger/styles.tsx +8 -1
- package/themes/original/src/components/ScheduleAccordion/index.tsx +68 -0
- package/themes/original/src/components/ScheduleAccordion/styles.tsx +14 -0
- package/themes/original/src/components/ServiceForm/index.tsx +377 -270
- package/themes/original/src/components/Sessions/index.tsx +11 -8
- package/themes/original/src/components/Sessions/styles.tsx +5 -0
- package/themes/original/src/components/SignupForm/index.tsx +79 -67
- package/themes/original/src/components/SingleOrderCard/index.tsx +126 -57
- package/themes/original/src/components/SingleOrderCard/styles.tsx +10 -8
- package/themes/original/src/components/SingleProductCard/index.tsx +104 -45
- package/themes/original/src/components/SingleProductCard/styles.tsx +14 -13
- 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/StripeCardsList/index.tsx +1 -1
- package/themes/original/src/components/StripeElementsForm/index.tsx +4 -1
- package/themes/original/src/components/UpsellingProducts/index.tsx +243 -218
- package/themes/original/src/components/UpsellingProducts/styles.tsx +12 -1
- package/themes/original/src/components/UserDetails/index.tsx +8 -4
- package/themes/original/src/components/UserFormDetails/index.tsx +53 -54
- package/themes/original/src/components/UserProfile/index.tsx +58 -35
- package/themes/original/src/components/UserProfile/styles.ts +17 -0
- package/themes/original/src/components/UserProfileForm/index.tsx +21 -28
- package/themes/original/src/components/UserProfileForm/styles.tsx +7 -0
- package/themes/original/src/components/Wallets/index.tsx +96 -93
- package/themes/original/src/components/Wallets/styles.tsx +2 -0
- package/themes/original/src/components/shared/CardAnimation.tsx +47 -0
- package/themes/original/src/components/shared/HeaderTitle.tsx +8 -3
- package/themes/original/src/components/shared/OBottomPopup.tsx +1 -1
- package/themes/original/src/components/shared/OButton.tsx +6 -2
- package/themes/original/src/components/shared/OIcon.tsx +8 -1
- package/themes/original/src/components/shared/OInput.tsx +10 -1
- package/themes/original/src/layouts/Container.tsx +13 -9
- package/themes/original/src/types/index.tsx +37 -5
- package/themes/original/src/utils/index.tsx +321 -58
- package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React, { useEffect, useState, useRef } from 'react';
|
|
2
|
-
import { View, Pressable, StyleSheet, ScrollView, RefreshControl,
|
|
3
|
-
import { useLanguage, useUtils, useToast,
|
|
2
|
+
import { View, Pressable, StyleSheet, ScrollView, RefreshControl, Platform, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { useLanguage, useUtils, useToast, OrderListGroups, useConfig } from 'ordering-components/native';
|
|
4
4
|
import SelectDropdown from 'react-native-select-dropdown'
|
|
5
5
|
import { Placeholder, PlaceholderLine, Fade } from 'rn-placeholder';
|
|
6
6
|
import FeatherIcon from 'react-native-vector-icons/Feather';
|
|
7
7
|
import FontistoIcon from 'react-native-vector-icons/Fontisto'
|
|
8
|
+
import AntDesignIcon from 'react-native-vector-icons/AntDesign'
|
|
8
9
|
import { useTheme } from 'styled-components/native';
|
|
9
10
|
import { DeviceOrientationMethods } from '../../../../../src/hooks/DeviceOrientation'
|
|
10
11
|
import { NotificationSetting } from '../../../../../src/components/NotificationSetting'
|
|
@@ -19,7 +20,6 @@ import {
|
|
|
19
20
|
IconWrapper,
|
|
20
21
|
ModalContainer,
|
|
21
22
|
ModalTitle,
|
|
22
|
-
FilterBtnWrapper,
|
|
23
23
|
TabPressable,
|
|
24
24
|
OrderStatus,
|
|
25
25
|
SlaOption,
|
|
@@ -33,41 +33,17 @@ import {
|
|
|
33
33
|
ItemContent,
|
|
34
34
|
TimerInputWrapper,
|
|
35
35
|
OverLine,
|
|
36
|
-
|
|
36
|
+
InputContainer
|
|
37
37
|
} from './styles';
|
|
38
38
|
import { PreviousOrders } from '../PreviousOrders';
|
|
39
39
|
import { OrdersOptionParams } from '../../types';
|
|
40
40
|
|
|
41
|
-
import { TouchableOpacity } from 'react-native-gesture-handler';
|
|
42
|
-
import GestureRecognizer from 'react-native-swipe-gestures';
|
|
43
|
-
import ODropDown from '../shared/ODropDown';
|
|
44
|
-
import { OrdersOptionStatus } from '../OrdersOptionStatus'
|
|
45
41
|
import { OrdersOptionCity } from '../OrdersOptionCity';
|
|
46
42
|
import { OrdersOptionBusiness } from '../OrdersOptionBusiness';
|
|
47
43
|
import { OrdersOptionDelivery } from '../OrdersOptionDelivery';
|
|
48
44
|
import { OrdersOptionPaymethod } from '../OrdersOptionPaymethod';
|
|
49
45
|
import { OrdersOptionDriver } from '../OrdersOptionDriver';
|
|
50
46
|
import { OrdersOptionDate } from '../OrdersOptionDate';
|
|
51
|
-
|
|
52
|
-
const tabsList: any = {
|
|
53
|
-
pending: 1,
|
|
54
|
-
inProgress: 2,
|
|
55
|
-
completed: 3,
|
|
56
|
-
cancelled: 4
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const tabsListText: any = {
|
|
60
|
-
1: 'pending',
|
|
61
|
-
2: 'inProgress',
|
|
62
|
-
3: 'completed',
|
|
63
|
-
4: 'cancelled'
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const swipeConfig = {
|
|
67
|
-
velocityThreshold: 0.3,
|
|
68
|
-
directionalOffsetThreshold: 80
|
|
69
|
-
};
|
|
70
|
-
|
|
71
47
|
const { useDeviceOrientation, PORTRAIT } = DeviceOrientationMethods
|
|
72
48
|
|
|
73
49
|
const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
@@ -79,10 +55,10 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
79
55
|
ordersGroup,
|
|
80
56
|
setOrdersGroup,
|
|
81
57
|
orderStatus,
|
|
58
|
+
ordersFormatted,
|
|
82
59
|
loadOrders,
|
|
83
60
|
loadMoreOrders,
|
|
84
61
|
onNavigationRedirect,
|
|
85
|
-
filtered,
|
|
86
62
|
onFiltered,
|
|
87
63
|
handleClickOrder,
|
|
88
64
|
isBusinessApp,
|
|
@@ -90,7 +66,9 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
90
66
|
logisticOrders,
|
|
91
67
|
loadLogisticOrders,
|
|
92
68
|
isLogisticActivated,
|
|
93
|
-
isAlsea
|
|
69
|
+
isAlsea,
|
|
70
|
+
handleChangeOrderStatus,
|
|
71
|
+
handleSendCustomerReview
|
|
94
72
|
} = props;
|
|
95
73
|
|
|
96
74
|
const defaultSearchList = {
|
|
@@ -120,10 +98,10 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
120
98
|
const [slaSettingTime, setSlaSettingTime] = useState(6000)
|
|
121
99
|
const [currentDeliveryType, setCurrentDeliveryType] = useState('Delivery')
|
|
122
100
|
const [search, setSearch] = useState(defaultSearchList)
|
|
123
|
-
const [selectedTabStatus, setSelectedTabStatus] = useState([])
|
|
101
|
+
const [selectedTabStatus, setSelectedTabStatus] = useState<any>([])
|
|
124
102
|
const [hour, setHour] = useState(0)
|
|
125
103
|
const [minute, setMinute] = useState(0)
|
|
126
|
-
|
|
104
|
+
const [openedSelect, setOpenedSelect] = useState('')
|
|
127
105
|
const WIDTH_SCREEN = orientationState?.dimensions?.width
|
|
128
106
|
const HEIGHT_SCREEN = orientationState?.dimensions?.height
|
|
129
107
|
const IS_PORTRAIT = orientationState.orientation === PORTRAIT
|
|
@@ -261,6 +239,19 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
261
239
|
overflow: 'hidden',
|
|
262
240
|
minHeight: 155
|
|
263
241
|
},
|
|
242
|
+
btnBackArrow: {
|
|
243
|
+
borderWidth: 0,
|
|
244
|
+
width: 32,
|
|
245
|
+
height: 32,
|
|
246
|
+
tintColor: theme.colors.textGray,
|
|
247
|
+
backgroundColor: theme.colors.clear,
|
|
248
|
+
borderColor: theme.colors.clear,
|
|
249
|
+
shadowColor: theme.colors.clear,
|
|
250
|
+
paddingLeft: 0,
|
|
251
|
+
paddingRight: 0,
|
|
252
|
+
marginBottom: 30,
|
|
253
|
+
marginTop: 30
|
|
254
|
+
},
|
|
264
255
|
rowStyle: {
|
|
265
256
|
display: 'flex',
|
|
266
257
|
borderBottomWidth: 0,
|
|
@@ -344,26 +335,6 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
344
335
|
})
|
|
345
336
|
}
|
|
346
337
|
|
|
347
|
-
const onSwipeLeft = () => {
|
|
348
|
-
let currentTab = tabsList[currentTabSelected]
|
|
349
|
-
currentTab = currentTab >= 4 ? null : currentTab + 1
|
|
350
|
-
|
|
351
|
-
if (!currentTab) return
|
|
352
|
-
|
|
353
|
-
const nextTab = tabsListText[currentTab]
|
|
354
|
-
nextTab && setCurrentTabSelected(nextTab)
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
const onSwipeRight = () => {
|
|
358
|
-
let currentTab = tabsList[currentTabSelected]
|
|
359
|
-
currentTab = currentTab <= 1 ? null : currentTab - 1
|
|
360
|
-
|
|
361
|
-
if (!currentTab) return
|
|
362
|
-
|
|
363
|
-
const nextTab = tabsListText[currentTab]
|
|
364
|
-
nextTab && setCurrentTabSelected(nextTab)
|
|
365
|
-
}
|
|
366
|
-
|
|
367
338
|
const calculateDate = (type: any, from: any, to: any) => {
|
|
368
339
|
switch (type) {
|
|
369
340
|
case 'today':
|
|
@@ -403,13 +374,15 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
403
374
|
setOpenSLASettingModal(false)
|
|
404
375
|
}
|
|
405
376
|
|
|
406
|
-
|
|
407
|
-
setCurrentFilters(null)
|
|
408
|
-
onFiltered && onFiltered(null)
|
|
377
|
+
const handleClearFilters = () => {
|
|
409
378
|
setSearch(defaultSearchList)
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
useEffect(() => {
|
|
410
382
|
scrollRefTab.current?.scrollTo({ animated: true });
|
|
411
383
|
scrollListRef.current?.scrollTo({ animated: true });
|
|
412
384
|
scrollRef.current?.scrollTo({ y: 0, animated: true });
|
|
385
|
+
setTags({ values: [] })
|
|
413
386
|
}, [currentTabSelected])
|
|
414
387
|
|
|
415
388
|
useEffect(() => {
|
|
@@ -417,12 +390,6 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
417
390
|
}, [])
|
|
418
391
|
|
|
419
392
|
return (
|
|
420
|
-
// <GestureRecognizer
|
|
421
|
-
// onSwipeLeft={onSwipeLeft}
|
|
422
|
-
// onSwipeRight={onSwipeRight}
|
|
423
|
-
// config={swipeConfig}
|
|
424
|
-
// style={{ flex: 1 }}
|
|
425
|
-
// >
|
|
426
393
|
<>
|
|
427
394
|
<View style={styles.header}>
|
|
428
395
|
<OText style={styles.title}>{t('MY_ORDERS', 'My orders')}</OText>
|
|
@@ -631,12 +598,18 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
631
598
|
currentTabSelected !== 'logisticOrders' &&
|
|
632
599
|
(
|
|
633
600
|
<PreviousOrders
|
|
634
|
-
orders={
|
|
601
|
+
orders={ordersFormatted}
|
|
602
|
+
navigation={props.navigation}
|
|
635
603
|
onNavigationRedirect={onNavigationRedirect}
|
|
636
604
|
getOrderStatus={getOrderStatus}
|
|
637
605
|
handleClickOrder={handleClickOrder}
|
|
638
606
|
slaSettingTime={slaSettingTime}
|
|
639
607
|
currentTabSelected={currentTabSelected}
|
|
608
|
+
appTitle={props.orderDetailsProps?.appTitle}
|
|
609
|
+
actions={props.orderDetailsProps?.actions}
|
|
610
|
+
orderTitle={props.orderDetailsProps?.orderTitle}
|
|
611
|
+
handleChangeOrderStatus={handleChangeOrderStatus}
|
|
612
|
+
handleSendCustomerReview={handleSendCustomerReview}
|
|
640
613
|
/>
|
|
641
614
|
)}
|
|
642
615
|
{!logisticOrders?.error?.length &&
|
|
@@ -726,7 +699,6 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
726
699
|
)}
|
|
727
700
|
</ScrollView>
|
|
728
701
|
</View>
|
|
729
|
-
{/* </GestureRecognizer> */}
|
|
730
702
|
|
|
731
703
|
{isBusinessApp && (
|
|
732
704
|
<NewOrderNotification isBusinessApp={isBusinessApp} />
|
|
@@ -737,39 +709,40 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
737
709
|
<ModalContainer
|
|
738
710
|
nestedScrollEnabled={true}
|
|
739
711
|
>
|
|
740
|
-
<
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
iconColor={theme.colors.backArrow}
|
|
744
|
-
iconStyle={{ width: 20, height: 13 }}
|
|
745
|
-
style={{
|
|
746
|
-
maxWidth: 40,
|
|
747
|
-
height: 35,
|
|
748
|
-
justifyContent: 'flex-end',
|
|
749
|
-
marginBottom: 30,
|
|
750
|
-
marginTop: 30
|
|
751
|
-
}}
|
|
752
|
-
onClick={() => handleClose()}
|
|
753
|
-
/>
|
|
712
|
+
<TouchableOpacity onPress={() => handleClose()} style={styles.btnBackArrow}>
|
|
713
|
+
<OIcon src={theme.images.general.arrow_left} color={theme.colors.textGray} />
|
|
714
|
+
</TouchableOpacity>
|
|
754
715
|
{openSearchModal && (
|
|
755
716
|
<SearchModalContent>
|
|
756
717
|
<ModalTitle>{t('SEARCH_ORDERS', 'Search orders')}</ModalTitle>
|
|
757
|
-
<
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
718
|
+
<InputContainer>
|
|
719
|
+
<OInput
|
|
720
|
+
value={search.id}
|
|
721
|
+
onChange={(value: any) => setSearch({ ...search, id: value })}
|
|
722
|
+
style={styles.inputStyle}
|
|
723
|
+
placeholder={t('ORDER_NUMBER', 'Order number')}
|
|
724
|
+
autoCorrect={false}
|
|
725
|
+
/>
|
|
726
|
+
<AntDesignIcon
|
|
727
|
+
name='close'
|
|
728
|
+
size={20}
|
|
729
|
+
style={{ position: 'absolute', right: 12, top: 13 }}
|
|
730
|
+
onPress={() => setSearch({ ...search, id: '' })}
|
|
731
|
+
/>
|
|
732
|
+
</InputContainer>
|
|
764
733
|
<OrdersOptionDate
|
|
765
734
|
{...props}
|
|
766
735
|
search={search}
|
|
767
736
|
onSearch={setSearch}
|
|
737
|
+
setOpenedSelect={setOpenedSelect}
|
|
738
|
+
openedSelect={openedSelect}
|
|
768
739
|
/>
|
|
769
740
|
<OrdersOptionCity
|
|
770
741
|
{...props}
|
|
771
742
|
search={search}
|
|
772
743
|
onSearch={setSearch}
|
|
744
|
+
setOpenedSelect={setOpenedSelect}
|
|
745
|
+
openedSelect={openedSelect}
|
|
773
746
|
/>
|
|
774
747
|
{isBusinessApp && (
|
|
775
748
|
<>
|
|
@@ -777,21 +750,29 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
777
750
|
{...props}
|
|
778
751
|
search={search}
|
|
779
752
|
onSearch={setSearch}
|
|
753
|
+
setOpenedSelect={setOpenedSelect}
|
|
754
|
+
openedSelect={openedSelect}
|
|
780
755
|
/>
|
|
781
756
|
<OrdersOptionDelivery
|
|
782
757
|
{...props}
|
|
783
758
|
search={search}
|
|
784
759
|
onSearch={setSearch}
|
|
760
|
+
setOpenedSelect={setOpenedSelect}
|
|
761
|
+
openedSelect={openedSelect}
|
|
785
762
|
/>
|
|
786
763
|
<OrdersOptionDriver
|
|
787
764
|
{...props}
|
|
788
765
|
search={search}
|
|
789
766
|
onSearch={setSearch}
|
|
767
|
+
setOpenedSelect={setOpenedSelect}
|
|
768
|
+
openedSelect={openedSelect}
|
|
790
769
|
/>
|
|
791
770
|
<OrdersOptionPaymethod
|
|
792
771
|
{...props}
|
|
793
772
|
search={search}
|
|
794
773
|
onSearch={setSearch}
|
|
774
|
+
setOpenedSelect={setOpenedSelect}
|
|
775
|
+
openedSelect={openedSelect}
|
|
795
776
|
/>
|
|
796
777
|
</>
|
|
797
778
|
)}
|
|
@@ -801,13 +782,24 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
801
782
|
imgRightSrc={null}
|
|
802
783
|
style={{
|
|
803
784
|
borderRadius: 7.6,
|
|
804
|
-
marginBottom:
|
|
785
|
+
marginBottom: 10,
|
|
805
786
|
marginTop: 60,
|
|
806
787
|
zIndex: 12
|
|
807
788
|
}}
|
|
808
789
|
onClick={applyFilters}
|
|
809
790
|
/>
|
|
810
|
-
|
|
791
|
+
<OButton
|
|
792
|
+
text={t('CLEAR_SEARCh', 'Clear search')}
|
|
793
|
+
imgRightSrc={null}
|
|
794
|
+
bgColor='#fff'
|
|
795
|
+
style={{
|
|
796
|
+
borderRadius: 7.6,
|
|
797
|
+
marginBottom: 0,
|
|
798
|
+
marginTop: 0,
|
|
799
|
+
zIndex: 12
|
|
800
|
+
}}
|
|
801
|
+
onClick={handleClearFilters}
|
|
802
|
+
/>
|
|
811
803
|
</SearchModalContent>
|
|
812
804
|
)}
|
|
813
805
|
{openSLASettingModal && (
|
|
@@ -849,7 +841,7 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
849
841
|
</ScrollView>
|
|
850
842
|
</FiltersTab>
|
|
851
843
|
<DeliveryStatusWrapper>
|
|
852
|
-
{selectedTabStatus && selectedTabStatus.length > 0 && selectedTabStatus.map((item, i) => (
|
|
844
|
+
{selectedTabStatus && selectedTabStatus.length > 0 && selectedTabStatus.map((item: any, i: number) => (
|
|
853
845
|
<StatusBlock
|
|
854
846
|
key={i}
|
|
855
847
|
item={item}
|
|
@@ -10,7 +10,9 @@ export const OrdersOptionBusinessUI = (props: any) => {
|
|
|
10
10
|
const {
|
|
11
11
|
search,
|
|
12
12
|
onSearch,
|
|
13
|
-
businessesList
|
|
13
|
+
businessesList,
|
|
14
|
+
setOpenedSelect,
|
|
15
|
+
openedSelect
|
|
14
16
|
} = props
|
|
15
17
|
|
|
16
18
|
const theme = useTheme();
|
|
@@ -25,6 +27,14 @@ export const OrdersOptionBusinessUI = (props: any) => {
|
|
|
25
27
|
setOptionsList(businesses)
|
|
26
28
|
}, [businessesList?.businesses])
|
|
27
29
|
|
|
30
|
+
const handleClear = () => {
|
|
31
|
+
onSearch({ ...search, business: '' })
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const handleOpenSelect = () => {
|
|
35
|
+
setOpenedSelect('business')
|
|
36
|
+
}
|
|
37
|
+
|
|
28
38
|
return (
|
|
29
39
|
<Container isIos={Platform.OS === 'ios'}>
|
|
30
40
|
<ODropDown
|
|
@@ -36,6 +46,10 @@ export const OrdersOptionBusinessUI = (props: any) => {
|
|
|
36
46
|
textcolor={theme.colors.unselectText}
|
|
37
47
|
placeholder={t('SELECT_BUSINESS', 'Select Business')}
|
|
38
48
|
dropViewMaxHeight={200}
|
|
49
|
+
handleClear={handleClear}
|
|
50
|
+
handleOpenSelect={handleOpenSelect}
|
|
51
|
+
openedSelect={openedSelect}
|
|
52
|
+
selectType='business'
|
|
39
53
|
/>
|
|
40
54
|
</Container>
|
|
41
55
|
);
|
|
@@ -10,7 +10,9 @@ export const OrdersOptionCityUI = (props: any) => {
|
|
|
10
10
|
const {
|
|
11
11
|
search,
|
|
12
12
|
onSearch,
|
|
13
|
-
allListValues
|
|
13
|
+
allListValues,
|
|
14
|
+
setOpenedSelect,
|
|
15
|
+
openedSelect
|
|
14
16
|
} = props
|
|
15
17
|
|
|
16
18
|
const theme = useTheme();
|
|
@@ -27,6 +29,14 @@ export const OrdersOptionCityUI = (props: any) => {
|
|
|
27
29
|
setOptionsList(cities)
|
|
28
30
|
}, [allListValues?.countries])
|
|
29
31
|
|
|
32
|
+
const handleClear = () => {
|
|
33
|
+
onSearch({ ...search, city: '' })
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const handleOpenSelect = () => {
|
|
37
|
+
setOpenedSelect('city')
|
|
38
|
+
}
|
|
39
|
+
|
|
30
40
|
return (
|
|
31
41
|
<Container isIos={Platform.OS === 'ios'}>
|
|
32
42
|
<ODropDown
|
|
@@ -38,6 +48,10 @@ export const OrdersOptionCityUI = (props: any) => {
|
|
|
38
48
|
textcolor={theme.colors.unselectText}
|
|
39
49
|
placeholder={t('SELECT_CITY', 'Select City')}
|
|
40
50
|
dropViewMaxHeight={200}
|
|
51
|
+
handleClear={handleClear}
|
|
52
|
+
handleOpenSelect={handleOpenSelect}
|
|
53
|
+
openedSelect={openedSelect}
|
|
54
|
+
selectType='city'
|
|
41
55
|
/>
|
|
42
56
|
</Container>
|
|
43
57
|
);
|
|
@@ -3,12 +3,16 @@ import { useLanguage } from 'ordering-components/native';
|
|
|
3
3
|
import { useTheme } from 'styled-components/native';
|
|
4
4
|
import { Container } from './styles';
|
|
5
5
|
import ODropDownCalendar from '../shared/ODropDownCalendar';
|
|
6
|
-
import { Platform } from 'react-native'
|
|
7
|
-
|
|
6
|
+
import { Button, Platform, Touchable, TouchableOpacity, View } from 'react-native'
|
|
7
|
+
import DoubleClick from 'react-native-double-tap'
|
|
8
|
+
import { OText } from '../shared';
|
|
9
|
+
import DoubleTap from 'react-native-double-tap';
|
|
8
10
|
export const OrdersOptionDate = (props: any) => {
|
|
9
11
|
const {
|
|
10
12
|
search,
|
|
11
|
-
onSearch
|
|
13
|
+
onSearch,
|
|
14
|
+
setOpenedSelect,
|
|
15
|
+
openedSelect
|
|
12
16
|
} = props
|
|
13
17
|
|
|
14
18
|
const theme = useTheme();
|
|
@@ -22,18 +26,23 @@ export const OrdersOptionDate = (props: any) => {
|
|
|
22
26
|
|
|
23
27
|
const handleChangeOption = (option: any) => {
|
|
24
28
|
if (option === 'calendar') {
|
|
25
|
-
onSearch({...search, date: {...search.date, type: option}})
|
|
29
|
+
onSearch({ ...search, date: { ...search.date, type: option } })
|
|
26
30
|
} else {
|
|
27
|
-
onSearch({...search, date: {from: '', to: '', type: option}})
|
|
31
|
+
onSearch({ ...search, date: { from: '', to: '', type: option } })
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
const handleChangeDate = (from: any, to: any) => {
|
|
32
|
-
onSearch({...search, date: {...search.date, from: from, to: to}})
|
|
36
|
+
onSearch({ ...search, date: { ...search.date, from: from, to: to } })
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const handleOpenSelect = () => {
|
|
40
|
+
setOpenedSelect('calendar')
|
|
33
41
|
}
|
|
34
42
|
|
|
35
43
|
return (
|
|
36
44
|
<Container isIos={Platform.OS === 'ios'}>
|
|
45
|
+
|
|
37
46
|
<ODropDownCalendar
|
|
38
47
|
options={optionsList}
|
|
39
48
|
defaultValue={search.date.type}
|
|
@@ -47,6 +56,10 @@ export const OrdersOptionDate = (props: any) => {
|
|
|
47
56
|
rangeDate={search.date}
|
|
48
57
|
handleChangeDate={handleChangeDate}
|
|
49
58
|
isCalendarAlwaysVisible
|
|
59
|
+
handleClear={() => onSearch({ ...search, date: { from: '', to: '', type: '' } })}
|
|
60
|
+
handleOpenSelect={handleOpenSelect}
|
|
61
|
+
openedSelect={openedSelect}
|
|
62
|
+
selectType='calendar'
|
|
50
63
|
/>
|
|
51
64
|
</Container>
|
|
52
65
|
);
|
|
@@ -8,7 +8,9 @@ import { Platform } from 'react-native'
|
|
|
8
8
|
export const OrdersOptionDelivery = (props: any) => {
|
|
9
9
|
const {
|
|
10
10
|
search,
|
|
11
|
-
onSearch
|
|
11
|
+
onSearch,
|
|
12
|
+
setOpenedSelect,
|
|
13
|
+
openedSelect
|
|
12
14
|
} = props
|
|
13
15
|
|
|
14
16
|
const theme = useTheme();
|
|
@@ -18,6 +20,14 @@ export const OrdersOptionDelivery = (props: any) => {
|
|
|
18
20
|
{ value: '2', content: t('PICKUP', 'Pickup') }
|
|
19
21
|
]
|
|
20
22
|
|
|
23
|
+
const handleClear = () => {
|
|
24
|
+
onSearch({ ...search, delivery_type: '' })
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const handleOpenSelect = () => {
|
|
28
|
+
setOpenedSelect('delivery_type')
|
|
29
|
+
}
|
|
30
|
+
|
|
21
31
|
return (
|
|
22
32
|
<Container isIos={Platform.OS === 'ios'}>
|
|
23
33
|
<ODropDown
|
|
@@ -29,6 +39,10 @@ export const OrdersOptionDelivery = (props: any) => {
|
|
|
29
39
|
textcolor={theme.colors.unselectText}
|
|
30
40
|
placeholder={t('SELECT_DELIVERY_TYPE', 'Select Delivery type')}
|
|
31
41
|
dropViewMaxHeight={200}
|
|
42
|
+
handleClear={handleClear}
|
|
43
|
+
handleOpenSelect={handleOpenSelect}
|
|
44
|
+
openedSelect={openedSelect}
|
|
45
|
+
selectType='delivery_type'
|
|
32
46
|
/>
|
|
33
47
|
</Container>
|
|
34
48
|
);
|
|
@@ -9,7 +9,9 @@ export const OrdersOptionDriverUI = (props: any) => {
|
|
|
9
9
|
const {
|
|
10
10
|
search,
|
|
11
11
|
onSearch,
|
|
12
|
-
driverList
|
|
12
|
+
driverList,
|
|
13
|
+
setOpenedSelect,
|
|
14
|
+
openedSelect
|
|
13
15
|
} = props
|
|
14
16
|
|
|
15
17
|
const theme = useTheme();
|
|
@@ -24,6 +26,14 @@ export const OrdersOptionDriverUI = (props: any) => {
|
|
|
24
26
|
setOptionsList(drivers)
|
|
25
27
|
}, [driverList?.drivers])
|
|
26
28
|
|
|
29
|
+
const handleClear = () => {
|
|
30
|
+
onSearch({ ...search, driver: '' })
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const handleOpenSelect = () => {
|
|
34
|
+
setOpenedSelect('driver')
|
|
35
|
+
}
|
|
36
|
+
|
|
27
37
|
return (
|
|
28
38
|
<Container isIos={Platform.OS === 'ios'}>
|
|
29
39
|
<ODropDown
|
|
@@ -35,6 +45,10 @@ export const OrdersOptionDriverUI = (props: any) => {
|
|
|
35
45
|
textcolor={theme.colors.unselectText}
|
|
36
46
|
placeholder={t('SELECT_DRIVER', 'Select Driver')}
|
|
37
47
|
dropViewMaxHeight={165}
|
|
48
|
+
handleClear={handleClear}
|
|
49
|
+
handleOpenSelect={handleOpenSelect}
|
|
50
|
+
openedSelect={openedSelect}
|
|
51
|
+
selectType='driver'
|
|
38
52
|
/>
|
|
39
53
|
</Container>
|
|
40
54
|
);
|
|
@@ -9,7 +9,9 @@ export const OrdersOptionPaymethodUI = (props: any) => {
|
|
|
9
9
|
const {
|
|
10
10
|
search,
|
|
11
11
|
onSearch,
|
|
12
|
-
paymethodList
|
|
12
|
+
paymethodList,
|
|
13
|
+
setOpenedSelect,
|
|
14
|
+
openedSelect
|
|
13
15
|
} = props
|
|
14
16
|
|
|
15
17
|
const theme = useTheme();
|
|
@@ -24,6 +26,14 @@ export const OrdersOptionPaymethodUI = (props: any) => {
|
|
|
24
26
|
setOptionsList(paymethods)
|
|
25
27
|
}, [paymethodList?.paymethods])
|
|
26
28
|
|
|
29
|
+
const handleClear = () => {
|
|
30
|
+
onSearch({ ...search, paymethod: '' })
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const handleOpenSelect = () => {
|
|
34
|
+
setOpenedSelect('paymethod')
|
|
35
|
+
}
|
|
36
|
+
|
|
27
37
|
return (
|
|
28
38
|
<Container isIos={Platform.OS === 'ios'}>
|
|
29
39
|
<ODropDown
|
|
@@ -35,6 +45,10 @@ export const OrdersOptionPaymethodUI = (props: any) => {
|
|
|
35
45
|
textcolor={theme.colors.unselectText}
|
|
36
46
|
placeholder={t('SELECT_PAYMETHOD', 'Select Paymethod')}
|
|
37
47
|
dropViewMaxHeight={200}
|
|
48
|
+
handleClear={handleClear}
|
|
49
|
+
handleOpenSelect={handleOpenSelect}
|
|
50
|
+
openedSelect={openedSelect}
|
|
51
|
+
selectType='paymethod'
|
|
38
52
|
/>
|
|
39
53
|
</Container>
|
|
40
54
|
);
|
|
@@ -11,7 +11,9 @@ export const OrdersOptionStatus = (props: any) => {
|
|
|
11
11
|
tabs,
|
|
12
12
|
orderStatus,
|
|
13
13
|
search,
|
|
14
|
-
onSearch
|
|
14
|
+
onSearch,
|
|
15
|
+
setOpenedSelect,
|
|
16
|
+
openedSelect
|
|
15
17
|
} = props
|
|
16
18
|
|
|
17
19
|
const theme = useTheme();
|
|
@@ -29,6 +31,10 @@ export const OrdersOptionStatus = (props: any) => {
|
|
|
29
31
|
setOptionsList(_optionList)
|
|
30
32
|
}, [currentTabSelected, tabs, orderStatus])
|
|
31
33
|
|
|
34
|
+
const handleOpenSelect = () => {
|
|
35
|
+
setOpenedSelect('state')
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
return (
|
|
33
39
|
<Container isIos={Platform.OS === 'ios'}>
|
|
34
40
|
<ODropDown
|
|
@@ -40,6 +46,9 @@ export const OrdersOptionStatus = (props: any) => {
|
|
|
40
46
|
textcolor={theme.colors.unselectText}
|
|
41
47
|
placeholder={t('SELECT_STATUS', 'Select Status')}
|
|
42
48
|
dropViewMaxHeight={200}
|
|
49
|
+
handleOpenSelect={handleOpenSelect}
|
|
50
|
+
openedSelect={openedSelect}
|
|
51
|
+
selectType='state'
|
|
43
52
|
/>
|
|
44
53
|
</Container>
|
|
45
54
|
);
|
|
@@ -176,17 +176,17 @@ export const PreviousMessages = (props: PreviousMessagesParams) => {
|
|
|
176
176
|
slug: 'ORDER_CUSTOMER_ARRIVED_BUSINESS',
|
|
177
177
|
percentage: 95,
|
|
178
178
|
},
|
|
179
|
-
{
|
|
180
|
-
key: 22,
|
|
181
|
-
value: t('ORDER_LOOKING_FOR_DRIVER', 'Looking for driver'),
|
|
182
|
-
slug: 'ORDER_LOOKING_FOR_DRIVER',
|
|
179
|
+
{
|
|
180
|
+
key: 22,
|
|
181
|
+
value: t('ORDER_LOOKING_FOR_DRIVER', 'Looking for driver'),
|
|
182
|
+
slug: 'ORDER_LOOKING_FOR_DRIVER',
|
|
183
183
|
percentage: 35
|
|
184
184
|
},
|
|
185
|
-
{
|
|
186
|
-
key: 23,
|
|
187
|
-
value: t('ORDER_DRIVER_ON_WAY', 'Driver on way'),
|
|
188
|
-
slug: 'ORDER_DRIVER_ON_WAY',
|
|
189
|
-
percentage: 45
|
|
185
|
+
{
|
|
186
|
+
key: 23,
|
|
187
|
+
value: t('ORDER_DRIVER_ON_WAY', 'Driver on way'),
|
|
188
|
+
slug: 'ORDER_DRIVER_ON_WAY',
|
|
189
|
+
percentage: 45
|
|
190
190
|
}
|
|
191
191
|
];
|
|
192
192
|
|
|
@@ -230,6 +230,7 @@ export const PreviousMessages = (props: PreviousMessagesParams) => {
|
|
|
230
230
|
fontWeight: '600',
|
|
231
231
|
fontSize: 16,
|
|
232
232
|
color: theme.colors.textGray,
|
|
233
|
+
width: '85%'
|
|
233
234
|
},
|
|
234
235
|
badge: {
|
|
235
236
|
marginBottom: 6,
|
|
@@ -265,15 +266,13 @@ export const PreviousMessages = (props: PreviousMessagesParams) => {
|
|
|
265
266
|
style={styles.cardButton}
|
|
266
267
|
activeOpacity={1}>
|
|
267
268
|
<Card key={order?.id}>
|
|
268
|
-
{
|
|
269
|
-
<
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
)}
|
|
276
|
-
|
|
269
|
+
<Logo style={styles.logo}>
|
|
270
|
+
<OIcon
|
|
271
|
+
url={optimizeImage(order?.business?.logo, 'h_300,c_limit')}
|
|
272
|
+
src={!order?.business?.logo && theme?.images?.dummies?.businessLogo}
|
|
273
|
+
style={styles.icon}
|
|
274
|
+
/>
|
|
275
|
+
</Logo>
|
|
277
276
|
<Information>
|
|
278
277
|
<Header>
|
|
279
278
|
<OText numberOfLines={1} style={styles.title}>
|