ordering-ui-react-native 0.15.49 → 0.15.51-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 +6 -3
- package/src/DeliveryApp.tsx +43 -1
- package/src/components/AddressForm/index.tsx +18 -2
- package/src/components/BusinessController/index.tsx +16 -8
- package/src/components/BusinessTypeFilter/index.tsx +3 -1
- package/src/components/BusinessesListing/index.tsx +1 -1
- package/src/components/Checkout/index.tsx +23 -2
- package/src/components/DriverTips/index.tsx +11 -6
- package/src/components/LanguageSelector/index.tsx +7 -2
- package/src/components/LoginForm/index.tsx +120 -30
- package/src/components/LoginForm/styles.tsx +6 -0
- package/src/components/OrderDetails/index.tsx +9 -23
- package/src/components/PaymentOptions/index.tsx +67 -50
- package/src/components/PaymentOptionsWebView/index.tsx +123 -124
- package/src/components/SignupForm/index.tsx +145 -61
- package/src/components/SingleProductCard/index.tsx +16 -4
- package/src/components/StripeMethodForm/index.tsx +1 -2
- package/src/components/UpsellingProducts/index.tsx +1 -1
- package/src/components/UserProfileForm/index.tsx +63 -6
- package/src/components/UserProfileForm/styles.tsx +8 -0
- package/src/components/VerifyPhone/styles.tsx +1 -2
- package/src/components/shared/OModal.tsx +1 -1
- package/src/hooks/useCountdownTimer.tsx +26 -0
- package/src/navigators/CheckoutNavigator.tsx +6 -0
- package/src/navigators/HomeNavigator.tsx +12 -0
- package/src/pages/BusinessesListing.tsx +1 -1
- package/src/pages/MultiCheckout.tsx +31 -0
- package/src/pages/MultiOrdersDetails.tsx +27 -0
- package/src/pages/Sessions.tsx +22 -0
- package/src/theme.json +0 -1
- package/src/types/index.tsx +18 -11
- package/src/utils/index.tsx +68 -1
- package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +103 -15
- package/themes/business/src/components/AcceptOrRejectOrder/styles.tsx +6 -0
- package/themes/business/src/components/Chat/index.tsx +42 -90
- package/themes/business/src/components/DriverMap/index.tsx +6 -5
- package/themes/business/src/components/Home/index.tsx +128 -55
- package/themes/business/src/components/Home/styles.tsx +8 -1
- package/themes/business/src/components/LoginForm/index.tsx +89 -2
- package/themes/business/src/components/LoginForm/styles.tsx +6 -0
- package/themes/business/src/components/LogoutButton/index.tsx +1 -1
- package/themes/business/src/components/NewOrderNotification/index.tsx +79 -105
- package/themes/business/src/components/OrderDetails/Business.tsx +1 -1
- package/themes/business/src/components/OrderDetails/Delivery.tsx +35 -18
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +159 -91
- package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +6 -0
- package/themes/business/src/components/OrderDetails/styles.tsx +7 -0
- package/themes/business/src/components/OrdersListManager/index.tsx +1 -1
- package/themes/business/src/components/OrdersOption/index.tsx +5 -2
- package/themes/business/src/components/ProductItemAccordion/index.tsx +2 -2
- package/themes/business/src/components/shared/OModal.tsx +1 -1
- package/themes/business/src/types/index.tsx +5 -1
- 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 +39 -28
- package/themes/kiosk/src/components/BusinessesListing/index.tsx +2 -3
- package/themes/kiosk/src/components/Cart/index.tsx +99 -26
- package/themes/kiosk/src/components/Cart/styles.tsx +6 -0
- package/themes/kiosk/src/components/CartBottomSheet/index.tsx +9 -2
- package/themes/kiosk/src/components/CartContent/index.tsx +0 -11
- package/themes/kiosk/src/components/CartItem/index.tsx +4 -3
- package/themes/kiosk/src/components/CategoriesMenu/index.tsx +107 -62
- package/themes/kiosk/src/components/Checkout/index.tsx +40 -22
- package/themes/kiosk/src/components/CustomerName/index.tsx +0 -6
- 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/NavBar/index.tsx +29 -20
- package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
- package/themes/kiosk/src/components/OrderDetails/index.tsx +165 -65
- package/themes/kiosk/src/components/OrderDetails/styles.tsx +5 -0
- package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +9 -11
- package/themes/kiosk/src/components/PaymentOptions/index.tsx +56 -54
- package/themes/kiosk/src/components/ProductForm/index.tsx +7 -8
- package/themes/kiosk/src/components/ProductItemAccordion/index.tsx +2 -2
- package/themes/kiosk/src/components/ProductOption/index.tsx +1 -1
- package/themes/kiosk/src/components/ProductOptionSubOption/index.tsx +3 -1
- package/themes/kiosk/src/components/UpsellingProducts/index.tsx +16 -5
- package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
- package/themes/kiosk/src/types/index.d.ts +3 -0
- package/themes/original/index.tsx +169 -4
- package/themes/original/src/components/ActiveOrders/index.tsx +15 -132
- package/themes/original/src/components/ActiveOrders/styles.tsx +0 -54
- package/themes/original/src/components/AddressForm/index.tsx +1 -1
- package/themes/original/src/components/AddressList/index.tsx +30 -18
- package/themes/original/src/components/AppleLogin/index.tsx +117 -78
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +136 -45
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +4 -0
- package/themes/original/src/components/BusinessController/index.tsx +48 -11
- package/themes/original/src/components/BusinessController/styles.tsx +27 -0
- package/themes/original/src/components/BusinessFeaturedController/index.tsx +20 -1
- package/themes/original/src/components/BusinessFeaturedController/styles.tsx +23 -0
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +8 -5
- package/themes/original/src/components/BusinessItemAccordion/styles.tsx +3 -1
- package/themes/original/src/components/BusinessListingSearch/index.tsx +196 -58
- package/themes/original/src/components/BusinessListingSearch/styles.tsx +22 -2
- package/themes/original/src/components/BusinessPreorder/index.tsx +1 -1
- package/themes/original/src/components/BusinessProductsCategories/index.tsx +2 -2
- package/themes/original/src/components/BusinessProductsList/CategoryDescription/index.tsx +44 -0
- package/themes/original/src/components/BusinessProductsList/index.tsx +119 -35
- package/themes/original/src/components/BusinessProductsList/styles.tsx +12 -4
- package/themes/original/src/components/BusinessProductsListing/index.tsx +109 -21
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +22 -0
- package/themes/original/src/components/BusinessReviews/index.tsx +4 -25
- package/themes/original/src/components/BusinessTypeFilter/index.tsx +1 -2
- package/themes/original/src/components/BusinessesListing/index.tsx +127 -66
- package/themes/original/src/components/BusinessesListing/styles.tsx +11 -3
- package/themes/original/src/components/Cart/index.tsx +60 -41
- package/themes/original/src/components/Checkout/index.tsx +48 -32
- package/themes/original/src/components/DriverTips/index.tsx +17 -12
- package/themes/original/src/components/Favorite/index.tsx +92 -0
- package/themes/original/src/components/Favorite/styles.tsx +22 -0
- package/themes/original/src/components/FavoriteList/index.tsx +298 -0
- package/themes/original/src/components/FavoriteList/styles.tsx +5 -0
- package/themes/original/src/components/ForgotPasswordForm/index.tsx +84 -4
- package/themes/original/src/components/GPSButton/index.tsx +15 -8
- package/themes/original/src/components/GoogleMap/index.tsx +1 -0
- package/themes/original/src/components/Help/index.tsx +21 -4
- package/themes/original/src/components/HighestRatedBusinesses/index.tsx +18 -1
- package/themes/original/src/components/Home/index.tsx +1 -1
- package/themes/original/src/components/LastOrders/index.tsx +12 -1
- package/themes/original/src/components/LoginForm/Otp/index.tsx +91 -0
- package/themes/original/src/components/LoginForm/Otp/styles.tsx +7 -0
- package/themes/original/src/components/LoginForm/index.tsx +394 -155
- package/themes/original/src/components/LoginForm/styles.tsx +7 -4
- package/themes/original/src/components/LogoutButton/index.tsx +7 -1
- package/themes/original/src/components/MessageListing/index.tsx +10 -1
- package/themes/original/src/components/Messages/index.tsx +1 -1
- package/themes/original/src/components/MomentOption/index.tsx +10 -1
- package/themes/original/src/components/MomentOption/styles.tsx +1 -1
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +243 -0
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/styles.tsx +46 -0
- package/themes/original/src/components/MultiCheckout/index.tsx +298 -0
- package/themes/original/src/components/MultiCheckout/styles.tsx +59 -0
- package/themes/original/src/components/MultiOrdersDetails/SingleOrderCard.tsx +372 -0
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +258 -0
- package/themes/original/src/components/MultiOrdersDetails/styles.tsx +50 -0
- package/themes/original/src/components/MyOrders/index.tsx +120 -32
- package/themes/original/src/components/MyOrders/styles.tsx +8 -1
- package/themes/original/src/components/OrderDetails/index.tsx +64 -42
- package/themes/original/src/components/OrderDetails/styles.tsx +1 -2
- package/themes/original/src/components/OrderSummary/index.tsx +3 -3
- package/themes/original/src/components/OrderTypeSelector/index.tsx +4 -2
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +153 -0
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/styles.tsx +6 -0
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +53 -0
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/styles.tsx +6 -0
- package/themes/original/src/components/OrdersOption/index.tsx +130 -38
- package/themes/original/src/components/OrdersOption/styles.tsx +4 -1
- package/themes/original/src/components/PaymentOptionCash/index.tsx +2 -2
- package/themes/original/src/components/PaymentOptionWallet/index.tsx +17 -23
- package/themes/original/src/components/PaymentOptionWallet/styles.tsx +1 -1
- package/themes/original/src/components/PaymentOptions/index.tsx +57 -36
- package/themes/original/src/components/PhoneInputNumber/index.tsx +1 -1
- package/themes/original/src/components/PreviousOrders/index.tsx +18 -147
- package/themes/original/src/components/ProductForm/index.tsx +70 -62
- package/themes/original/src/components/ProductForm/styles.tsx +0 -1
- package/themes/original/src/components/ProductItemAccordion/index.tsx +2 -2
- package/themes/original/src/components/ProductOptionSubOption/index.tsx +18 -12
- package/themes/original/src/components/Promotions/index.tsx +250 -0
- package/themes/original/src/components/Promotions/styles.tsx +60 -0
- package/themes/original/src/components/SearchBar/index.tsx +10 -4
- package/themes/original/src/components/Sessions/index.tsx +160 -0
- package/themes/original/src/components/Sessions/styles.tsx +15 -0
- package/themes/original/src/components/SignupForm/index.tsx +333 -128
- package/themes/original/src/components/SingleOrderCard/index.tsx +282 -0
- package/themes/original/src/components/SingleOrderCard/styles.tsx +54 -0
- package/themes/original/src/components/SingleProductCard/index.tsx +59 -17
- package/themes/original/src/components/StripeElementsForm/index.tsx +16 -8
- package/themes/original/src/components/StripeElementsForm/naked.tsx +2 -2
- package/themes/original/src/components/UpsellingProducts/index.tsx +86 -74
- package/themes/original/src/components/UserDetails/index.tsx +5 -96
- package/themes/original/src/components/UserFormDetails/index.tsx +34 -24
- package/themes/original/src/components/UserProfile/index.tsx +59 -5
- package/themes/original/src/components/UserProfileForm/index.tsx +20 -18
- package/themes/original/src/components/UserVerification/index.tsx +178 -192
- package/themes/original/src/components/VerifyPhone/index.tsx +10 -7
- package/themes/original/src/components/VerifyPhone/styles.tsx +2 -1
- package/themes/original/src/components/Wallets/index.tsx +76 -9
- package/themes/original/src/components/Wallets/styles.tsx +21 -0
- package/themes/original/src/components/shared/OModal.tsx +4 -2
- package/themes/original/src/config/constants.tsx +6 -6
- package/themes/original/src/types/index.tsx +144 -9
- package/themes/original/src/utils/index.tsx +19 -2
- package/themes/single-business/src/components/AddressList/index.tsx +1 -1
- package/themes/single-business/src/components/OrderTypeSelector/index.tsx +1 -1
- package/themes/single-business/src/components/UserProfile/index.tsx +1 -1
- package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
|
@@ -1,56 +1,144 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react'
|
|
2
2
|
import { useLanguage } from 'ordering-components/native';
|
|
3
|
-
import { View, StyleSheet,
|
|
3
|
+
import { View, StyleSheet, RefreshControl } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { OrdersOption } from '../OrdersOption'
|
|
6
|
-
import { OText } from '../shared'
|
|
6
|
+
import { HeaderTitle, OText } from '../shared'
|
|
7
7
|
import { ScrollView } from 'react-native-gesture-handler';
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
import { Tab } from './styles'
|
|
9
|
+
import { useTheme } from 'styled-components/native';
|
|
10
|
+
import { Container } from '../../layouts/Container';
|
|
10
11
|
|
|
11
12
|
export const MyOrders = (props: any) => {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const {
|
|
14
|
+
hideOrders,
|
|
15
|
+
businessesSearchList
|
|
16
|
+
} = props
|
|
17
|
+
const [, t] = useLanguage()
|
|
18
|
+
const theme = useTheme()
|
|
19
|
+
const [refreshing] = useState(false);
|
|
20
|
+
const [refreshOrders, setRefreshOrders] = useState(false)
|
|
21
|
+
const [isEmptyBusinesses, setIsEmptyBusinesses] = useState(false)
|
|
22
|
+
const [businessOrderIds, setBusinessOrderIds] = useState([])
|
|
15
23
|
const [ordersLength, setOrdersLength] = useState({
|
|
16
24
|
activeOrdersLength: 0,
|
|
17
25
|
previousOrdersLength: 0,
|
|
18
26
|
});
|
|
27
|
+
const [selectedOption, setSelectedOption] = useState(!hideOrders ? 'orders' : 'business')
|
|
28
|
+
|
|
29
|
+
const notOrderOptions = ['business', 'products']
|
|
30
|
+
const allEmpty = (ordersLength?.activeOrdersLength === 0 && ordersLength?.previousOrdersLength === 0) || ((isEmptyBusinesses || businessOrderIds?.length === 0) && hideOrders)
|
|
31
|
+
const MyOrdersMenu = [
|
|
32
|
+
{ key: 'orders', value: t('ORDERS', 'Orders') },
|
|
33
|
+
{ key: 'business', value: t('BUSINESS', 'Business') },
|
|
34
|
+
{ key: 'products', value: t('PRODUCTS', 'Products') }
|
|
35
|
+
]
|
|
19
36
|
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
37
|
+
const handleOnRefresh = () => {
|
|
38
|
+
setRefreshOrders(true);
|
|
39
|
+
}
|
|
23
40
|
|
|
24
|
-
|
|
25
|
-
|
|
41
|
+
const styles = StyleSheet.create({
|
|
42
|
+
container: {
|
|
43
|
+
paddingVertical: 5,
|
|
44
|
+
borderColor: theme.colors.clear,
|
|
45
|
+
backgroundColor: '#FFF'
|
|
46
|
+
},
|
|
47
|
+
featuredStyle: {
|
|
48
|
+
display: 'none',
|
|
49
|
+
},
|
|
50
|
+
tabStyle: {
|
|
51
|
+
marginTop: 10,
|
|
52
|
+
height: 4,
|
|
53
|
+
borderTopStartRadius: 4,
|
|
54
|
+
borderTopEndRadius: 4,
|
|
55
|
+
backgroundColor: theme.colors.textPrimary,
|
|
56
|
+
},
|
|
57
|
+
tabDeactived: {
|
|
58
|
+
marginTop: 10,
|
|
59
|
+
height: 4
|
|
26
60
|
}
|
|
27
|
-
|
|
61
|
+
});
|
|
28
62
|
|
|
29
63
|
return (
|
|
30
|
-
<
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
64
|
+
<Container noPadding refreshControl={
|
|
65
|
+
<RefreshControl
|
|
66
|
+
refreshing={refreshing}
|
|
67
|
+
onRefresh={() => handleOnRefresh()}
|
|
68
|
+
/>
|
|
69
|
+
}>
|
|
70
|
+
{!hideOrders && (
|
|
71
|
+
<HeaderTitle text={t('MY_ORDERS', 'My Orders')} />
|
|
72
|
+
)}
|
|
73
|
+
{!allEmpty && (
|
|
74
|
+
<ScrollView
|
|
75
|
+
horizontal
|
|
76
|
+
style={{ ...styles.container, borderBottomWidth: 1 }}
|
|
77
|
+
contentContainerStyle={{ paddingHorizontal: !!businessesSearchList ? 0 : 40 }}
|
|
78
|
+
showsHorizontalScrollIndicator={false}
|
|
79
|
+
scrollEventThrottle={16}
|
|
80
|
+
>
|
|
81
|
+
{MyOrdersMenu.filter(option => !hideOrders || option.key !== 'orders').map(option => (
|
|
82
|
+
<Tab
|
|
83
|
+
key={option.key}
|
|
84
|
+
onPress={() => setSelectedOption(option.key)}
|
|
85
|
+
style={
|
|
86
|
+
{
|
|
87
|
+
borderBottomColor:
|
|
88
|
+
selectedOption === option.key
|
|
89
|
+
? theme.colors.textNormal
|
|
90
|
+
: theme.colors.border,
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
>
|
|
94
|
+
<OText>{option?.value}</OText>
|
|
95
|
+
</Tab>
|
|
96
|
+
))}
|
|
97
|
+
</ScrollView>
|
|
98
|
+
)}
|
|
99
|
+
{selectedOption === 'orders' && (
|
|
100
|
+
<>
|
|
101
|
+
<View style={{ paddingLeft: 40, paddingRight: 40 }}>
|
|
102
|
+
<OrdersOption
|
|
103
|
+
{...props}
|
|
104
|
+
activeOrders
|
|
105
|
+
ordersLength={ordersLength}
|
|
106
|
+
setOrdersLength={setOrdersLength}
|
|
107
|
+
setRefreshOrders={setRefreshOrders}
|
|
108
|
+
refreshOrders={refreshOrders}
|
|
109
|
+
/>
|
|
110
|
+
</View>
|
|
111
|
+
<View style={{ paddingLeft: 40, paddingRight: 40 }}>
|
|
112
|
+
<OrdersOption
|
|
113
|
+
{...props}
|
|
114
|
+
ordersLength={ordersLength}
|
|
115
|
+
setOrdersLength={setOrdersLength}
|
|
116
|
+
setRefreshOrders={setRefreshOrders}
|
|
117
|
+
refreshOrders={refreshOrders}
|
|
118
|
+
/>
|
|
119
|
+
</View>
|
|
120
|
+
</>
|
|
121
|
+
)}
|
|
122
|
+
{notOrderOptions.includes(selectedOption) && (
|
|
38
123
|
<OrdersOption
|
|
39
124
|
{...props}
|
|
125
|
+
titleContent={t('PREVIOUSLY_ORDERED', 'Previously ordered')}
|
|
126
|
+
hideOrders
|
|
127
|
+
horizontal
|
|
128
|
+
isBusiness={selectedOption === 'business'}
|
|
129
|
+
isProducts={selectedOption === 'products'}
|
|
40
130
|
activeOrders
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<View style={{ paddingLeft: 40, paddingRight: 40 }}>
|
|
48
|
-
<OrdersOption
|
|
49
|
-
{...props}
|
|
131
|
+
pastOrders
|
|
132
|
+
preOrders
|
|
133
|
+
businessesSearchList={businessesSearchList}
|
|
134
|
+
setIsEmptyBusinesses={setIsEmptyBusinesses}
|
|
135
|
+
businessOrderIds={businessOrderIds}
|
|
136
|
+
setBusinessOrderIds={setBusinessOrderIds}
|
|
50
137
|
ordersLength={ordersLength}
|
|
51
138
|
setOrdersLength={setOrdersLength}
|
|
52
139
|
/>
|
|
53
|
-
|
|
54
|
-
</
|
|
140
|
+
)}
|
|
141
|
+
</Container>
|
|
142
|
+
|
|
55
143
|
)
|
|
56
144
|
}
|
|
@@ -3,4 +3,11 @@ import styled, { css } from 'styled-components/native'
|
|
|
3
3
|
export const Wrapper = styled.View`
|
|
4
4
|
flex: 1;
|
|
5
5
|
background-color: ${(props: any) => props.theme.colors.white};
|
|
6
|
-
`
|
|
6
|
+
`
|
|
7
|
+
|
|
8
|
+
export const Tab = styled.TouchableOpacity`
|
|
9
|
+
padding-horizontal: 10px;
|
|
10
|
+
padding-vertical: 10px;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
border-bottom-width: 1px;
|
|
13
|
+
`
|
|
@@ -42,7 +42,7 @@ import { OSRow } from '../OrderSummary/styles';
|
|
|
42
42
|
import AntIcon from 'react-native-vector-icons/AntDesign'
|
|
43
43
|
import { TaxInformation } from '../TaxInformation';
|
|
44
44
|
import { Placeholder, PlaceholderLine } from 'rn-placeholder';
|
|
45
|
-
|
|
45
|
+
import NavBar from '../NavBar'
|
|
46
46
|
export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
47
47
|
const {
|
|
48
48
|
navigation,
|
|
@@ -82,7 +82,8 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
82
82
|
justifyContent: 'flex-start',
|
|
83
83
|
paddingLeft: 0,
|
|
84
84
|
height: 30,
|
|
85
|
-
width:
|
|
85
|
+
width: 30,
|
|
86
|
+
marginTop: Platform.OS === 'ios' ? 0 : 30
|
|
86
87
|
},
|
|
87
88
|
});
|
|
88
89
|
|
|
@@ -94,6 +95,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
94
95
|
const [isReviewed, setIsReviewed] = useState(false)
|
|
95
96
|
const [openTaxModal, setOpenTaxModal] = useState<any>({ open: false, tax: null, type: '' })
|
|
96
97
|
const { order, businessData } = props.order;
|
|
98
|
+
const mapValidStatuses = [9, 19, 23]
|
|
97
99
|
|
|
98
100
|
const walletName: any = {
|
|
99
101
|
cash: {
|
|
@@ -331,7 +333,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
331
333
|
};
|
|
332
334
|
|
|
333
335
|
const getIncludedTaxes = () => {
|
|
334
|
-
if (order?.taxes?.length === 0) {
|
|
336
|
+
if (order?.taxes?.length === 0 || !order?.taxes) {
|
|
335
337
|
return order.tax_type === 1 ? order?.summary?.tax ?? 0 : 0
|
|
336
338
|
} else {
|
|
337
339
|
return order?.taxes.reduce((taxIncluded: number, tax: any) => {
|
|
@@ -364,16 +366,24 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
364
366
|
|
|
365
367
|
|
|
366
368
|
useEffect(() => {
|
|
369
|
+
const _businessId = 'businessId:' + businessData?.id
|
|
367
370
|
if (reorderState?.error) {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
if (_uuid) {
|
|
371
|
-
_setStoreData('remove-cartId', JSON.stringify(_uuid))
|
|
371
|
+
if (businessData?.id) {
|
|
372
|
+
_setStoreData('adjust-cart-products', JSON.stringify(_businessId))
|
|
372
373
|
navigation.navigate('Business', { store: businessData?.slug })
|
|
373
374
|
}
|
|
374
375
|
}
|
|
375
|
-
if (!reorderState?.error && reorderState?.
|
|
376
|
-
|
|
376
|
+
if (!reorderState?.error && reorderState.loading === false && businessData?.id) {
|
|
377
|
+
const products = carts?.[_businessId]?.products
|
|
378
|
+
const available = products.every((product: any) => product.valid === true)
|
|
379
|
+
|
|
380
|
+
if (available && reorderState?.result?.uuid && (products?.length === order?.products.length)) {
|
|
381
|
+
onNavigationRedirect && onNavigationRedirect('CheckoutNavigator', { cartUuid: reorderState?.result.uuid })
|
|
382
|
+
} else {
|
|
383
|
+
_setStoreData('adjust-cart-products', JSON.stringify(_businessId))
|
|
384
|
+
products?.length !== order?.products.length && _setStoreData('already-removed', JSON.stringify('removed'))
|
|
385
|
+
navigation.navigate('Business', { store: businessData?.slug })
|
|
386
|
+
}
|
|
377
387
|
}
|
|
378
388
|
}, [reorderState])
|
|
379
389
|
|
|
@@ -405,10 +415,19 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
405
415
|
'https://res.cloudinary.com/demo/image/upload/c_thumb,g_face,r_max/d_avatar.png/non_existing_id.png',
|
|
406
416
|
},
|
|
407
417
|
];
|
|
418
|
+
const driverLocationString = typeof order?.driver?.location?.location === 'string' && order?.driver?.location?.location?.split(',').map((l: string) => l.replace(/[^-.0-9]/g, ''))
|
|
419
|
+
const parsedLocations = locations.map(location => typeof location?.location === 'string' ? {
|
|
420
|
+
...location,
|
|
421
|
+
lat: parseFloat(location?.location?.split(',')[0].replace(/[^-.0-9]/g, '')),
|
|
422
|
+
lng: parseFloat(location?.location?.split(',')[1].replace(/[^-.0-9]/g, ''))
|
|
423
|
+
} : location)
|
|
408
424
|
|
|
409
425
|
useEffect(() => {
|
|
410
426
|
if (driverLocation) {
|
|
411
|
-
|
|
427
|
+
parsedLocations[0] = {
|
|
428
|
+
...locations[0],
|
|
429
|
+
...driverLocation
|
|
430
|
+
}
|
|
412
431
|
}
|
|
413
432
|
}, [driverLocation]);
|
|
414
433
|
|
|
@@ -469,27 +488,23 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
469
488
|
{order && Object.keys(order).length > 0 && (
|
|
470
489
|
<>
|
|
471
490
|
<Header>
|
|
472
|
-
<
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
491
|
+
<NavBar
|
|
492
|
+
title={`${t('ORDER', 'Order')} #${order?.id}`}
|
|
493
|
+
titleAlign={'center'}
|
|
494
|
+
onActionLeft={handleArrowBack}
|
|
495
|
+
showCall={false}
|
|
496
|
+
btnStyle={{ paddingLeft: 0 }}
|
|
497
|
+
style={{ marginTop: Platform.OS === 'ios' ? 0 : 20 }}
|
|
498
|
+
titleWrapStyle={{ paddingHorizontal: 0 }}
|
|
499
|
+
titleStyle={{ marginRight: 0, marginLeft: 0 }}
|
|
500
|
+
subTitle={<OText size={12} lineHeight={18} color={theme.colors.textNormal}>
|
|
501
|
+
{order?.delivery_datetime_utc
|
|
502
|
+
? parseDate(order?.delivery_datetime_utc)
|
|
503
|
+
: parseDate(order?.delivery_datetime, { utc: false })}
|
|
504
|
+
</OText>}
|
|
478
505
|
/>
|
|
479
506
|
<OrderInfo>
|
|
480
507
|
<OrderData>
|
|
481
|
-
<OText
|
|
482
|
-
size={20}
|
|
483
|
-
lineHeight={30}
|
|
484
|
-
weight={'600'}
|
|
485
|
-
color={theme.colors.textNormal}>
|
|
486
|
-
{t('ORDER', 'Order')} #{order?.id}
|
|
487
|
-
</OText>
|
|
488
|
-
<OText size={12} lineHeight={18} color={theme.colors.textNormal}>
|
|
489
|
-
{order?.delivery_datetime_utc
|
|
490
|
-
? parseDate(order?.delivery_datetime_utc)
|
|
491
|
-
: parseDate(order?.delivery_datetime, { utc: false })}
|
|
492
|
-
</OText>
|
|
493
508
|
{
|
|
494
509
|
(
|
|
495
510
|
parseInt(order?.status) === 1 ||
|
|
@@ -651,13 +666,15 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
651
666
|
mBottom={2}>
|
|
652
667
|
{order?.customer?.address}
|
|
653
668
|
</OText>
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
669
|
+
{(!!order?.customer?.cellphone) && (
|
|
670
|
+
<OText
|
|
671
|
+
size={12}
|
|
672
|
+
lineHeight={18}
|
|
673
|
+
color={theme.colors.textNormal}
|
|
674
|
+
mBottom={2}>
|
|
675
|
+
{`${!!order?.customer?.country_phone_code ? '+' + order?.customer?.country_phone_code : ''} ${order?.customer?.cellphone}`}
|
|
676
|
+
</OText>
|
|
677
|
+
)}
|
|
661
678
|
</InfoBlock>
|
|
662
679
|
</Customer>
|
|
663
680
|
{order?.delivery_option !== undefined && order?.delivery_type === 1 && (
|
|
@@ -670,7 +687,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
670
687
|
</OText>
|
|
671
688
|
</View>
|
|
672
689
|
)}
|
|
673
|
-
{order?.comment && (
|
|
690
|
+
{!!order?.comment && (
|
|
674
691
|
<View style={{ marginTop: 15 }}>
|
|
675
692
|
<OText size={16} style={{ textAlign: 'left' }} color={theme.colors.textNormal}>
|
|
676
693
|
{t('COMMENT', 'Comment')}
|
|
@@ -680,11 +697,16 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
680
697
|
)}
|
|
681
698
|
{order?.driver && (
|
|
682
699
|
<>
|
|
683
|
-
{order?.driver?.location && parseInt(order?.status)
|
|
700
|
+
{order?.driver?.location && mapValidStatuses.includes(parseInt(order?.status)) && (
|
|
684
701
|
<Map>
|
|
685
|
-
|
|
686
|
-
location={order?.driver?.location
|
|
687
|
-
|
|
702
|
+
<GoogleMap
|
|
703
|
+
location={typeof order?.driver?.location?.location === 'string'
|
|
704
|
+
? {
|
|
705
|
+
lat: parseFloat(driverLocationString[0]),
|
|
706
|
+
lng: parseFloat(driverLocationString[1]),
|
|
707
|
+
} : driverLocation ?? order?.driver?.location
|
|
708
|
+
}
|
|
709
|
+
locations={parsedLocations}
|
|
688
710
|
readOnly
|
|
689
711
|
/>
|
|
690
712
|
</Map>
|
|
@@ -898,7 +920,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
898
920
|
<OSRow>
|
|
899
921
|
<OText size={12} lineHeight={18} weight={'400'} color={theme.colors.textNormal} numberOfLines={1}>
|
|
900
922
|
{fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}
|
|
901
|
-
({fee?.fixed > 0 && `${parsePrice(fee?.fixed)} + `}{fee.percentage}
|
|
923
|
+
({fee?.fixed > 0 && `${parsePrice(fee?.fixed)}${fee.percentage > 0 ? ' + ' : ''}`}{fee.percentage > 0 && `${fee.percentage}%`}){' '}
|
|
902
924
|
</OText>
|
|
903
925
|
<TouchableOpacity onPress={() => setOpenTaxModal({ open: true, data: fee, type: 'fee' })}>
|
|
904
926
|
<AntIcon name='infocirlceo' size={16} color={theme.colors.primary} />
|
|
@@ -1010,7 +1032,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
1010
1032
|
)}
|
|
1011
1033
|
</View>
|
|
1012
1034
|
<OText>
|
|
1013
|
-
-{parsePrice(event.amount)}
|
|
1035
|
+
-{parsePrice(event.amount, { isTruncable: true })}
|
|
1014
1036
|
</OText>
|
|
1015
1037
|
</View>
|
|
1016
1038
|
))}
|
|
@@ -5,7 +5,6 @@ export const OrderDetailsContainer = styled.ScrollView`
|
|
|
5
5
|
`
|
|
6
6
|
|
|
7
7
|
export const NavBack = styled.TouchableOpacity`
|
|
8
|
-
|
|
9
8
|
`
|
|
10
9
|
|
|
11
10
|
|
|
@@ -127,4 +126,4 @@ export const Divider = styled.View`
|
|
|
127
126
|
`
|
|
128
127
|
export const OrderAction = styled.View`
|
|
129
128
|
flex-direction: row;
|
|
130
|
-
`
|
|
129
|
+
`
|
|
@@ -71,7 +71,7 @@ const OrderSummaryUI = (props: any) => {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
const getIncludedTaxes = () => {
|
|
74
|
-
if (cart?.taxes === null) {
|
|
74
|
+
if (cart?.taxes === null || !cart?.taxes) {
|
|
75
75
|
return cart.business.tax_type === 1 ? cart?.tax : 0
|
|
76
76
|
} else {
|
|
77
77
|
return cart?.taxes.reduce((taxIncluded: number, tax: any) => {
|
|
@@ -112,7 +112,7 @@ const OrderSummaryUI = (props: any) => {
|
|
|
112
112
|
{cart?.products?.length > 0 && (
|
|
113
113
|
<>
|
|
114
114
|
<OSProductList>
|
|
115
|
-
{cart?.products
|
|
115
|
+
{cart?.products?.map((product: any) => (
|
|
116
116
|
<ProductItemAccordion
|
|
117
117
|
key={product.code}
|
|
118
118
|
product={product}
|
|
@@ -202,7 +202,7 @@ const OrderSummaryUI = (props: any) => {
|
|
|
202
202
|
<OSRow>
|
|
203
203
|
<OText size={12} numberOfLines={1}>
|
|
204
204
|
{fee.name || t('INHERIT_FROM_BUSINESS', 'Inherit from business')}{' '}
|
|
205
|
-
({fee?.fixed > 0 && `${parsePrice(fee?.fixed)} + `}{fee.percentage}
|
|
205
|
+
({fee?.fixed > 0 && `${parsePrice(fee?.fixed)}${fee.percentage > 0 ? ' + ' : ''}`}{fee.percentage > 0 && `${fee.percentage}%`}){' '}
|
|
206
206
|
</OText>
|
|
207
207
|
<TouchableOpacity onPress={() => setOpenTaxModal({ open: true, data: fee, type: 'fee' })} >
|
|
208
208
|
<AntIcon name='infocirlceo' size={16} color={theme.colors.primary} />
|
|
@@ -19,7 +19,8 @@ const OrderTypeSelectorUI = (props: OrderTypeSelectParams) => {
|
|
|
19
19
|
typeSelected,
|
|
20
20
|
defaultValue,
|
|
21
21
|
configTypes,
|
|
22
|
-
orderTypes
|
|
22
|
+
orderTypes,
|
|
23
|
+
setOrderTypeValue
|
|
23
24
|
} = props
|
|
24
25
|
|
|
25
26
|
const theme = useTheme();
|
|
@@ -39,6 +40,7 @@ const OrderTypeSelectorUI = (props: OrderTypeSelectParams) => {
|
|
|
39
40
|
|
|
40
41
|
const handleChangeOrderTypeCallback = (orderType: number) => {
|
|
41
42
|
if (!orderState.loading) {
|
|
43
|
+
setOrderTypeValue && setOrderTypeValue(orderType)
|
|
42
44
|
handleChangeOrderType(orderType)
|
|
43
45
|
goToBack();
|
|
44
46
|
}
|
|
@@ -51,7 +53,7 @@ const OrderTypeSelectorUI = (props: OrderTypeSelectParams) => {
|
|
|
51
53
|
btnStyle={{ paddingLeft: 0 }}
|
|
52
54
|
paddingTop={0}
|
|
53
55
|
style={{ paddingBottom: 0 }}
|
|
54
|
-
title={t('
|
|
56
|
+
title={t('HOW_WILL_YOU_DELIVERY_TYPE', 'How will your order type?')}
|
|
55
57
|
titleAlign={'center'}
|
|
56
58
|
titleStyle={{ fontSize: 14 }}
|
|
57
59
|
/>
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import React, { useEffect } from 'react'
|
|
2
|
+
import { BusinessList as BusinessListController, useOrder } from 'ordering-components/native'
|
|
3
|
+
import { BusinessController } from '../../BusinessController'
|
|
4
|
+
import { Fade, Placeholder, PlaceholderLine } from 'rn-placeholder';
|
|
5
|
+
|
|
6
|
+
import { ListWrapper } from './styles'
|
|
7
|
+
import {
|
|
8
|
+
View,
|
|
9
|
+
StyleSheet,
|
|
10
|
+
ScrollView,
|
|
11
|
+
Dimensions
|
|
12
|
+
} from 'react-native';
|
|
13
|
+
import { PreviousBusinessOrderedParams } from '../../../types';
|
|
14
|
+
|
|
15
|
+
export const PreviousBusinessOrderedUI = (props: PreviousBusinessOrderedParams) => {
|
|
16
|
+
const {
|
|
17
|
+
navigation,
|
|
18
|
+
businessesList,
|
|
19
|
+
setBusinessLoading,
|
|
20
|
+
businessId,
|
|
21
|
+
onNavigationRedirect,
|
|
22
|
+
isBusinessesSearchList,
|
|
23
|
+
businessLoading
|
|
24
|
+
} = props
|
|
25
|
+
|
|
26
|
+
const [orderState] = useOrder()
|
|
27
|
+
const windowWidth = Dimensions.get('window').width;
|
|
28
|
+
|
|
29
|
+
const onBusinessClick = (business: any) => {
|
|
30
|
+
onNavigationRedirect('Business', { store: business.slug })
|
|
31
|
+
}
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (businessesList?.loading && businessesList?.businesses?.length === 0) {
|
|
34
|
+
setBusinessLoading(true)
|
|
35
|
+
} else {
|
|
36
|
+
setBusinessLoading(false)
|
|
37
|
+
}
|
|
38
|
+
}, [businessesList?.loading])
|
|
39
|
+
|
|
40
|
+
const styles = StyleSheet.create({
|
|
41
|
+
container: {
|
|
42
|
+
marginBottom: 0,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
const BusinessControllerList = ({ style }: any) => {
|
|
47
|
+
return (
|
|
48
|
+
<>
|
|
49
|
+
{businessesList.businesses?.filter((business: any) => businessId?.includes(business?.id))?.map((business: any, i: number) => (
|
|
50
|
+
<BusinessController
|
|
51
|
+
key={`${business.id}_` + i}
|
|
52
|
+
business={business}
|
|
53
|
+
isBusinessOpen={business.open}
|
|
54
|
+
handleCustomClick={() => onBusinessClick(business)}
|
|
55
|
+
orderType={orderState?.options?.type}
|
|
56
|
+
navigation={navigation}
|
|
57
|
+
businessHeader={business?.header}
|
|
58
|
+
businessFeatured={business?.featured}
|
|
59
|
+
businessLogo={business?.logo}
|
|
60
|
+
businessReviews={business?.reviews}
|
|
61
|
+
businessDeliveryPrice={business?.delivery_price}
|
|
62
|
+
businessDeliveryTime={business?.delivery_time}
|
|
63
|
+
businessPickupTime={business?.pickup_time}
|
|
64
|
+
businessDistance={business?.distance}
|
|
65
|
+
style={style}
|
|
66
|
+
/>
|
|
67
|
+
))}
|
|
68
|
+
</>
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const BusinessSkeletons = () => {
|
|
73
|
+
return (
|
|
74
|
+
<>
|
|
75
|
+
{[...Array(4).keys()].map((item, i) => (
|
|
76
|
+
<Placeholder
|
|
77
|
+
Animation={Fade}
|
|
78
|
+
key={i}
|
|
79
|
+
style={{ marginBottom: 20 }}>
|
|
80
|
+
<View style={{ width: '100%' }}>
|
|
81
|
+
<PlaceholderLine
|
|
82
|
+
height={200}
|
|
83
|
+
style={{ marginBottom: 20, borderRadius: 25 }}
|
|
84
|
+
/>
|
|
85
|
+
<View style={{ paddingHorizontal: 10 }}>
|
|
86
|
+
<View
|
|
87
|
+
style={{
|
|
88
|
+
flexDirection: 'row',
|
|
89
|
+
justifyContent: 'space-between',
|
|
90
|
+
}}>
|
|
91
|
+
<PlaceholderLine
|
|
92
|
+
height={25}
|
|
93
|
+
width={40}
|
|
94
|
+
style={{ marginBottom: 10 }}
|
|
95
|
+
/>
|
|
96
|
+
<PlaceholderLine
|
|
97
|
+
height={25}
|
|
98
|
+
width={20}
|
|
99
|
+
style={{ marginBottom: 10 }}
|
|
100
|
+
/>
|
|
101
|
+
</View>
|
|
102
|
+
<PlaceholderLine
|
|
103
|
+
height={20}
|
|
104
|
+
width={30}
|
|
105
|
+
style={{ marginBottom: 10 }}
|
|
106
|
+
/>
|
|
107
|
+
<PlaceholderLine
|
|
108
|
+
height={20}
|
|
109
|
+
width={80}
|
|
110
|
+
style={{ marginBottom: 10 }}
|
|
111
|
+
/>
|
|
112
|
+
</View>
|
|
113
|
+
</View>
|
|
114
|
+
</Placeholder>
|
|
115
|
+
))}
|
|
116
|
+
</>
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return (
|
|
121
|
+
<ScrollView horizontal={isBusinessesSearchList} style={styles.container} showsVerticalScrollIndicator={false}>
|
|
122
|
+
{isBusinessesSearchList ? (
|
|
123
|
+
<>
|
|
124
|
+
{!businessLoading && (
|
|
125
|
+
<BusinessControllerList
|
|
126
|
+
style={{ width: windowWidth - 80, marginRight: 20 }}
|
|
127
|
+
/>
|
|
128
|
+
)}
|
|
129
|
+
</>
|
|
130
|
+
) : (
|
|
131
|
+
<ListWrapper>
|
|
132
|
+
<BusinessControllerList />
|
|
133
|
+
{businessesList.loading && (
|
|
134
|
+
<BusinessSkeletons />
|
|
135
|
+
)}
|
|
136
|
+
</ListWrapper>
|
|
137
|
+
)}
|
|
138
|
+
|
|
139
|
+
</ScrollView>
|
|
140
|
+
)
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export const PreviousBusinessOrdered = (props: PreviousBusinessOrderedParams) => {
|
|
144
|
+
const previousBusinessOrderedController = {
|
|
145
|
+
...props,
|
|
146
|
+
UIComponent: PreviousBusinessOrderedUI,
|
|
147
|
+
paginationSettings: { initialPage: 1, pageSize: 50, controlType: 'infinity' }
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return (
|
|
151
|
+
<BusinessListController {...previousBusinessOrderedController} />
|
|
152
|
+
)
|
|
153
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { ScrollView, StyleSheet, Dimensions } from 'react-native'
|
|
3
|
+
import {
|
|
4
|
+
ListWrapper
|
|
5
|
+
} from './styles'
|
|
6
|
+
|
|
7
|
+
import { SingleProductCard } from '../../SingleProductCard'
|
|
8
|
+
import { PreviousProductsOrderedParams } from '../../../types'
|
|
9
|
+
|
|
10
|
+
export const PreviousProductsOrdered = (props: PreviousProductsOrderedParams) => {
|
|
11
|
+
const {
|
|
12
|
+
products,
|
|
13
|
+
onProductClick,
|
|
14
|
+
isBusinessesSearchList
|
|
15
|
+
} = props
|
|
16
|
+
|
|
17
|
+
const windowWidth = Dimensions.get('window').width;
|
|
18
|
+
|
|
19
|
+
const styles = StyleSheet.create({
|
|
20
|
+
container: {
|
|
21
|
+
marginBottom: 0,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const ProductList = ({ style }: any) => {
|
|
26
|
+
return (
|
|
27
|
+
<>
|
|
28
|
+
{products?.map((product: any) => (
|
|
29
|
+
<SingleProductCard
|
|
30
|
+
key={product?.id}
|
|
31
|
+
isSoldOut={(product.inventoried && !product.quantity)}
|
|
32
|
+
product={product}
|
|
33
|
+
businessId={product?.business?.id}
|
|
34
|
+
onProductClick={onProductClick}
|
|
35
|
+
style={style}
|
|
36
|
+
productAddedToCartLength={0}
|
|
37
|
+
/>
|
|
38
|
+
))}
|
|
39
|
+
</>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
return (
|
|
43
|
+
<ScrollView horizontal={isBusinessesSearchList} style={styles.container} showsVerticalScrollIndicator={false}>
|
|
44
|
+
{isBusinessesSearchList ? (
|
|
45
|
+
<ProductList style={{ width: windowWidth - 80, marginRight: 20 }} />
|
|
46
|
+
) : (
|
|
47
|
+
<ListWrapper isBusinessesSearchList={isBusinessesSearchList}>
|
|
48
|
+
<ProductList />
|
|
49
|
+
</ListWrapper>
|
|
50
|
+
)}
|
|
51
|
+
</ScrollView>
|
|
52
|
+
)
|
|
53
|
+
}
|