ordering-ui-react-native 0.15.65 → 0.15.66-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 -3
- package/src/DeliveryApp.tsx +43 -1
- package/src/components/AddressForm/index.tsx +18 -2
- package/src/components/BusinessBasicInformation/index.tsx +11 -19
- package/src/components/BusinessController/index.tsx +16 -8
- package/src/components/BusinessInformation/index.tsx +14 -0
- package/src/components/BusinessTypeFilter/index.tsx +1 -2
- 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 +6 -2
- package/src/components/LoginForm/index.tsx +120 -30
- package/src/components/LoginForm/styles.tsx +6 -0
- package/src/components/OrderDetails/index.tsx +7 -21
- package/src/components/PaymentOptions/index.tsx +67 -50
- 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 +145 -61
- package/src/components/SingleProductCard/index.tsx +16 -4
- package/src/components/SingleProductReview/index.tsx +1 -1
- package/src/components/StripeMethodForm/index.tsx +22 -24
- 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 +7 -6
- package/src/pages/MultiCheckout.tsx +31 -0
- package/src/pages/MultiOrdersDetails.tsx +27 -0
- package/src/pages/OrderDetails.tsx +1 -1
- package/src/pages/ReviewDriver.tsx +2 -2
- package/src/pages/ReviewOrder.tsx +2 -2
- 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/index.tsx +4 -0
- 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/DriverSchedule/index.tsx +71 -0
- package/themes/business/src/components/DriverSchedule/styles.tsx +6 -0
- 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 +26 -13
- package/themes/business/src/components/OrderDetails/Business.tsx +2 -2
- package/themes/business/src/components/OrderDetails/Delivery.tsx +28 -11
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +14 -7
- package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +6 -0
- package/themes/business/src/components/OrdersListManager/index.tsx +1 -1
- package/themes/business/src/components/OrdersOption/index.tsx +8 -4
- package/themes/business/src/components/PreviousOrders/index.tsx +7 -7
- package/themes/business/src/components/ProductItemAccordion/index.tsx +2 -2
- 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/OModal.tsx +41 -38
- package/themes/business/src/types/index.tsx +8 -2
- 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 +11 -12
- 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 +32 -27
- 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 +1 -0
- package/themes/original/index.tsx +30 -8
- 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 +7 -6
- package/themes/original/src/components/AddressList/index.tsx +30 -18
- package/themes/original/src/components/AppleLogin/index.tsx +6 -8
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +304 -158
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +6 -2
- package/themes/original/src/components/BusinessController/index.tsx +168 -96
- package/themes/original/src/components/BusinessController/styles.tsx +5 -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 +231 -63
- 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 +51 -52
- package/themes/original/src/components/BusinessProductsList/styles.tsx +0 -3
- package/themes/original/src/components/BusinessProductsListing/index.tsx +318 -155
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +32 -0
- package/themes/original/src/components/BusinessReviews/index.tsx +6 -1
- package/themes/original/src/components/BusinessTypeFilter/index.tsx +106 -39
- package/themes/original/src/components/BusinessTypeFilter/styles.tsx +2 -0
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +560 -0
- package/themes/original/src/components/BusinessesListing/{styles.tsx → Layout/Appointment/styles.tsx} +24 -2
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +679 -0
- package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +137 -0
- package/themes/original/src/components/BusinessesListing/index.tsx +99 -458
- package/themes/original/src/components/Cart/index.tsx +61 -42
- package/themes/original/src/components/Checkout/index.tsx +90 -39
- 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 +11 -11
- 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/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 +332 -164
- package/themes/original/src/components/LoginForm/styles.tsx +1 -3
- 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/MomentSelector/index.tsx +197 -0
- package/themes/original/src/components/MomentSelector/styles.tsx +6 -0
- 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/NavBar/index.tsx +4 -4
- package/themes/original/src/components/OrderDetails/OrderHistory.tsx +167 -0
- package/themes/original/src/components/OrderDetails/index.tsx +150 -64
- package/themes/original/src/components/OrderDetails/styles.tsx +1 -2
- package/themes/original/src/components/OrderSummary/index.tsx +6 -6
- package/themes/original/src/components/OrderTypeSelector/index.tsx +79 -35
- package/themes/original/src/components/OrderTypeSelector/styles.tsx +19 -1
- 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 +137 -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 +58 -37
- package/themes/original/src/components/PhoneInputNumber/index.tsx +5 -11
- package/themes/original/src/components/PreviousOrders/index.tsx +18 -147
- package/themes/original/src/components/ProductForm/index.tsx +718 -679
- package/themes/original/src/components/ProductForm/styles.tsx +6 -2
- package/themes/original/src/components/ProductItemAccordion/index.tsx +2 -2
- package/themes/original/src/components/ProductOption/index.tsx +1 -1
- package/themes/original/src/components/ProductOptionSubOption/index.tsx +18 -12
- package/themes/original/src/components/ProfessionalFilter/index.tsx +128 -0
- package/themes/original/src/components/ProfessionalFilter/styles.tsx +0 -0
- package/themes/original/src/components/ProfessionalProfile/index.tsx +298 -0
- package/themes/original/src/components/ProfessionalProfile/styles.tsx +46 -0
- package/themes/original/src/components/Promotions/index.tsx +151 -133
- package/themes/original/src/components/Promotions/styles.tsx +3 -23
- package/themes/original/src/components/ReviewDriver/index.tsx +6 -6
- package/themes/original/src/components/ReviewOrder/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 +13 -5
- package/themes/original/src/components/ServiceForm/index.tsx +579 -0
- package/themes/original/src/components/ServiceForm/styles.tsx +50 -0
- 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 +237 -126
- package/themes/original/src/components/SingleOrderCard/index.tsx +275 -0
- package/themes/original/src/components/SingleOrderCard/styles.tsx +54 -0
- package/themes/original/src/components/SingleProductCard/index.tsx +161 -88
- package/themes/original/src/components/SingleProductCard/styles.tsx +2 -2
- 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 +15 -81
- package/themes/original/src/components/UserFormDetails/index.tsx +98 -66
- package/themes/original/src/components/UserProfile/index.tsx +11 -2
- package/themes/original/src/components/UserProfileForm/index.tsx +33 -22
- 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 +25 -12
- package/themes/original/src/components/shared/OBottomPopup.tsx +44 -13
- package/themes/original/src/components/shared/OButton.tsx +2 -0
- package/themes/original/src/components/shared/OInput.tsx +3 -2
- package/themes/original/src/components/shared/OModal.tsx +4 -2
- package/themes/original/src/layouts/FloatingBottomContainer.tsx +5 -1
- package/themes/original/src/types/index.tsx +187 -35
- package/themes/original/src/utils/index.tsx +96 -2
- package/themes/single-business/src/components/OrderTypeSelector/index.tsx +1 -1
- package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
|
@@ -7,8 +7,7 @@ import {
|
|
|
7
7
|
WalletList,
|
|
8
8
|
useLanguage,
|
|
9
9
|
useUtils,
|
|
10
|
-
useConfig
|
|
11
|
-
useSession
|
|
10
|
+
useConfig
|
|
12
11
|
} from 'ordering-components/native'
|
|
13
12
|
|
|
14
13
|
import {
|
|
@@ -32,14 +31,17 @@ const WalletsUI = (props: any) => {
|
|
|
32
31
|
const {
|
|
33
32
|
navigation,
|
|
34
33
|
walletList,
|
|
34
|
+
userLoyaltyLevel,
|
|
35
35
|
transactionsList,
|
|
36
36
|
setWalletSelected,
|
|
37
37
|
isWalletCashEnabled,
|
|
38
|
-
isWalletPointsEnabled
|
|
38
|
+
isWalletPointsEnabled,
|
|
39
|
+
getWallets,
|
|
40
|
+
refreshWallets,
|
|
41
|
+
setRefreshWallets
|
|
39
42
|
} = props
|
|
40
43
|
|
|
41
44
|
const [, t] = useLanguage()
|
|
42
|
-
const [{ user }] = useSession()
|
|
43
45
|
const theme = useTheme()
|
|
44
46
|
const [{ parsePrice }] = useUtils()
|
|
45
47
|
const [{ configs }] = useConfig()
|
|
@@ -59,11 +61,11 @@ const WalletsUI = (props: any) => {
|
|
|
59
61
|
|
|
60
62
|
const [tabSelected, setTabSelected] = useState(isWalletCashEnabled ? 'cash' : 'credit_point')
|
|
61
63
|
|
|
62
|
-
const isWalletEnabled = configs?.wallet_enabled?.value === '1' && (isWalletCashEnabled || isWalletPointsEnabled)
|
|
64
|
+
const isWalletEnabled = configs?.cash_wallet?.value && configs?.wallet_enabled?.value === '1' && (isWalletCashEnabled || isWalletPointsEnabled)
|
|
63
65
|
|
|
64
66
|
const currentWalletSelected = (walletList.wallets?.length > 0 && walletList.wallets?.find((w: any) => w.type === tabSelected)) ?? null
|
|
65
67
|
|
|
66
|
-
const loyaltyLevel = Object.keys(
|
|
68
|
+
const loyaltyLevel = Object.keys(userLoyaltyLevel.loyaltyLevel ?? {}).length > 0 && userLoyaltyLevel.loyaltyLevel
|
|
67
69
|
|
|
68
70
|
const walletName: any = {
|
|
69
71
|
cash: {
|
|
@@ -95,6 +97,13 @@ const WalletsUI = (props: any) => {
|
|
|
95
97
|
}
|
|
96
98
|
}, [configs])
|
|
97
99
|
|
|
100
|
+
useEffect(() => {
|
|
101
|
+
if(refreshWallets){
|
|
102
|
+
getWallets()
|
|
103
|
+
setRefreshWallets && setRefreshWallets(false)
|
|
104
|
+
}
|
|
105
|
+
}, [refreshWallets])
|
|
106
|
+
|
|
98
107
|
return (
|
|
99
108
|
<Container>
|
|
100
109
|
<NavBar
|
|
@@ -107,18 +116,22 @@ const WalletsUI = (props: any) => {
|
|
|
107
116
|
/>
|
|
108
117
|
|
|
109
118
|
{!walletList.loading &&
|
|
119
|
+
!userLoyaltyLevel.loading &&
|
|
110
120
|
!walletList.error &&
|
|
111
121
|
walletList.wallets?.length > 0 &&
|
|
112
122
|
(
|
|
113
123
|
<>
|
|
114
|
-
<OTabs
|
|
124
|
+
<OTabs
|
|
125
|
+
horizontal
|
|
126
|
+
showsHorizontalScrollIndicator={false}
|
|
127
|
+
>
|
|
115
128
|
{walletList.wallets?.map((wallet: any) => walletName[wallet.type]?.isActive && (
|
|
116
129
|
<Pressable
|
|
117
130
|
key={wallet.id}
|
|
118
131
|
onPress={() => handleChangeTab(wallet)}
|
|
119
132
|
>
|
|
120
|
-
<OTab>
|
|
121
|
-
<OText size={18}
|
|
133
|
+
<OTab isSelected={tabSelected === wallet.type}>
|
|
134
|
+
<OText size={18}>
|
|
122
135
|
{walletName[wallet.type]?.name}
|
|
123
136
|
</OText>
|
|
124
137
|
</OTab>
|
|
@@ -127,7 +140,7 @@ const WalletsUI = (props: any) => {
|
|
|
127
140
|
</OTabs>
|
|
128
141
|
|
|
129
142
|
<SectionContent>
|
|
130
|
-
{!!loyaltyLevel && (
|
|
143
|
+
{!!loyaltyLevel && tabSelected === 'credit_point' && (
|
|
131
144
|
<LoyaltyContent>
|
|
132
145
|
<LoyaltyWrapp>
|
|
133
146
|
<OText size={20}>
|
|
@@ -226,7 +239,7 @@ const WalletsUI = (props: any) => {
|
|
|
226
239
|
</>
|
|
227
240
|
)}
|
|
228
241
|
|
|
229
|
-
{walletList?.loading && (
|
|
242
|
+
{(walletList?.loading || userLoyaltyLevel.loading) && (
|
|
230
243
|
<>
|
|
231
244
|
<View>
|
|
232
245
|
<Placeholder Animation={Fade}>
|
|
@@ -250,7 +263,7 @@ const WalletsUI = (props: any) => {
|
|
|
250
263
|
</>
|
|
251
264
|
)}
|
|
252
265
|
|
|
253
|
-
{!walletList?.loading && (walletList?.error || !walletList?.wallets?.length) && (
|
|
266
|
+
{!walletList?.loading && !userLoyaltyLevel.loading && (walletList?.error || !walletList?.wallets?.length) && (
|
|
254
267
|
<NotFoundSource
|
|
255
268
|
content={walletList?.error
|
|
256
269
|
? t('ERROR_NOT_FOUND_WALLETS', 'Sorry, an error has occurred')
|
|
@@ -1,33 +1,43 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Modal, TouchableWithoutFeedback, Dimensions, StyleSheet, View, Text, Platform, StatusBar } from 'react-native'
|
|
2
|
+
import { Modal, TouchableWithoutFeedback, TouchableOpacity, Dimensions, StyleSheet, View, Text, Platform, StatusBar } from 'react-native'
|
|
3
3
|
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
4
|
+
import { OIcon } from '.';
|
|
4
5
|
const deviceHeight = Dimensions.get('window').height
|
|
5
6
|
|
|
6
7
|
interface Props {
|
|
7
8
|
open: boolean;
|
|
9
|
+
transparent?: boolean;
|
|
8
10
|
title?: string;
|
|
9
11
|
children?: any;
|
|
10
12
|
onClose?: any;
|
|
11
13
|
isStatusBar?: boolean;
|
|
14
|
+
bottomContainerStyle?: any;
|
|
15
|
+
titleStyle?: any;
|
|
16
|
+
closeIcon?: any;
|
|
12
17
|
}
|
|
13
18
|
const OBottomPopup = (props: Props) => {
|
|
14
19
|
const {
|
|
15
20
|
open,
|
|
21
|
+
transparent,
|
|
16
22
|
title,
|
|
17
23
|
onClose,
|
|
18
24
|
children,
|
|
19
|
-
isStatusBar
|
|
25
|
+
isStatusBar,
|
|
26
|
+
titleStyle,
|
|
27
|
+
bottomContainerStyle,
|
|
28
|
+
closeIcon
|
|
20
29
|
} = props
|
|
21
30
|
const { top, bottom } = useSafeAreaInsets();
|
|
31
|
+
|
|
22
32
|
return (
|
|
23
33
|
<Modal
|
|
24
34
|
animationType='slide'
|
|
25
|
-
transparent={
|
|
35
|
+
transparent={transparent}
|
|
26
36
|
visible={open}
|
|
27
37
|
onRequestClose={() => onClose()}
|
|
28
38
|
presentationStyle={'fullScreen'}
|
|
29
39
|
>
|
|
30
|
-
|
|
40
|
+
{isStatusBar && <StatusBar translucent={false} />}
|
|
31
41
|
<View style={styles.container}>
|
|
32
42
|
<TouchableWithoutFeedback
|
|
33
43
|
style={styles.touchableOutsideStyle}
|
|
@@ -35,13 +45,24 @@ const OBottomPopup = (props: Props) => {
|
|
|
35
45
|
>
|
|
36
46
|
<View style={styles.touchableOutsideStyle} />
|
|
37
47
|
</TouchableWithoutFeedback>
|
|
38
|
-
<View style={styles.bottomContainer}>
|
|
48
|
+
<View style={{ ...styles.bottomContainer, ...bottomContainerStyle }}>
|
|
39
49
|
<View style={{ paddingTop: top, paddingBottom: bottom }}>
|
|
40
|
-
{
|
|
41
|
-
|
|
42
|
-
{
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
<View style={styles.modalTitleStyle}>
|
|
51
|
+
{closeIcon && (
|
|
52
|
+
<TouchableOpacity onPress={() => onClose()} style={styles.closeIconStyle}>
|
|
53
|
+
<OIcon
|
|
54
|
+
src={closeIcon}
|
|
55
|
+
width={20}
|
|
56
|
+
height={20}
|
|
57
|
+
/>
|
|
58
|
+
</TouchableOpacity>
|
|
59
|
+
)}
|
|
60
|
+
{!!title && (
|
|
61
|
+
<Text style={{ ...styles.titleStyle, ...titleStyle }}>
|
|
62
|
+
{title}
|
|
63
|
+
</Text>
|
|
64
|
+
)}
|
|
65
|
+
</View>
|
|
45
66
|
{children}
|
|
46
67
|
</View>
|
|
47
68
|
</View>
|
|
@@ -54,7 +75,7 @@ const styles = StyleSheet.create({
|
|
|
54
75
|
container: {
|
|
55
76
|
flex: 1,
|
|
56
77
|
backgroundColor: '#000000AA',
|
|
57
|
-
justifyContent: 'flex-end'
|
|
78
|
+
justifyContent: 'flex-end'
|
|
58
79
|
},
|
|
59
80
|
touchableOutsideStyle: {
|
|
60
81
|
flex: 1,
|
|
@@ -68,8 +89,18 @@ const styles = StyleSheet.create({
|
|
|
68
89
|
},
|
|
69
90
|
titleStyle: {
|
|
70
91
|
fontSize: 20,
|
|
71
|
-
fontWeight: 'bold'
|
|
72
|
-
|
|
92
|
+
fontWeight: 'bold'
|
|
93
|
+
},
|
|
94
|
+
closeIconStyle: {
|
|
95
|
+
position: 'absolute',
|
|
96
|
+
left: 25,
|
|
97
|
+
top: 25,
|
|
98
|
+
zIndex: 100
|
|
99
|
+
},
|
|
100
|
+
modalTitleStyle: {
|
|
101
|
+
position: 'relative',
|
|
102
|
+
paddingHorizontal: 10,
|
|
103
|
+
paddingVertical: 20
|
|
73
104
|
}
|
|
74
105
|
})
|
|
75
106
|
|
|
@@ -78,6 +78,7 @@ interface Props {
|
|
|
78
78
|
borderColor?: string;
|
|
79
79
|
loadingStyle?: ViewStyle;
|
|
80
80
|
showNextIcon?: boolean;
|
|
81
|
+
isDisabledWithSameStyles?: boolean;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
const OButton = (props: Props): React.ReactElement => {
|
|
@@ -110,6 +111,7 @@ const OButton = (props: Props): React.ReactElement => {
|
|
|
110
111
|
activeOpacity={props.activeOpacity}
|
|
111
112
|
onPress={props.onClick}
|
|
112
113
|
style={{ width: props.isCircle ? 52 : props.style?.width, ...props.parentStyle }}
|
|
114
|
+
disabled={props.isDisabledWithSameStyles}
|
|
113
115
|
>
|
|
114
116
|
<StyledButton style={props.bgColor ? { ...props.style, backgroundColor: props.bgColor, borderColor: props.borderColor } : props.style}>
|
|
115
117
|
{props.imgLeftSrc ? (
|
|
@@ -56,7 +56,7 @@ const Wrapper = styled.Pressable`
|
|
|
56
56
|
const OInput = (props: Props): React.ReactElement => {
|
|
57
57
|
return (
|
|
58
58
|
<Wrapper
|
|
59
|
-
onPress={() => {props.forwardRef?.current?.focus?.(); props.onPress && props.onPress()}}
|
|
59
|
+
onPress={() => { props.forwardRef?.current?.focus?.(); props.onPress && props.onPress() }}
|
|
60
60
|
style={{
|
|
61
61
|
backgroundColor: props.bgColor,
|
|
62
62
|
borderColor: props.borderColor,
|
|
@@ -75,6 +75,7 @@ const OInput = (props: Props): React.ReactElement => {
|
|
|
75
75
|
<MaterialIcon name={props?.vertorIcon} size={20} color={props?.vectorIconColor} style={{ marginHorizontal: 10 }} />
|
|
76
76
|
)}
|
|
77
77
|
<Input
|
|
78
|
+
autoFocus={props?.autoFocus}
|
|
78
79
|
name={props.name}
|
|
79
80
|
secureTextEntry={props.isSecured}
|
|
80
81
|
onChangeText={(txt: any) => props.name ? props.onChange({ target: { name: props.name, value: txt } }) : props.onChange(txt)}
|
|
@@ -90,7 +91,7 @@ const OInput = (props: Props): React.ReactElement => {
|
|
|
90
91
|
returnKeyType={props.returnKeyType}
|
|
91
92
|
onSubmitEditing={props.onSubmitEditing}
|
|
92
93
|
blurOnSubmit={props.blurOnSubmit}
|
|
93
|
-
ref={(e
|
|
94
|
+
ref={(e: any) => {
|
|
94
95
|
props.forwardRef && (props.forwardRef.current = e)
|
|
95
96
|
}}
|
|
96
97
|
style={props?.inputStyle}
|
|
@@ -21,6 +21,7 @@ interface Props {
|
|
|
21
21
|
isNotDecoration?: boolean;
|
|
22
22
|
styleCloseButton?: any,
|
|
23
23
|
isAvoidKeyBoardView?: boolean;
|
|
24
|
+
styleContainerCloseButton?: any;
|
|
24
25
|
}
|
|
25
26
|
const KeyboardView = styled.KeyboardAvoidingView`
|
|
26
27
|
flex-grow: 1;
|
|
@@ -45,6 +46,7 @@ const OModal = (props: Props): React.ReactElement => {
|
|
|
45
46
|
isNotDecoration,
|
|
46
47
|
style,
|
|
47
48
|
styleCloseButton,
|
|
49
|
+
styleContainerCloseButton,
|
|
48
50
|
isAvoidKeyBoardView
|
|
49
51
|
} = props
|
|
50
52
|
|
|
@@ -55,7 +57,7 @@ const OModal = (props: Props): React.ReactElement => {
|
|
|
55
57
|
{!entireModal ? (
|
|
56
58
|
<View style={styles.centeredView}>
|
|
57
59
|
<View style={titleSectionStyle ? titleSectionStyle : styles.titleSection}>
|
|
58
|
-
<TouchableOpacity style={styles.wrapperIcon} onPress={onClose}>
|
|
60
|
+
<TouchableOpacity style={{...styles.wrapperIcon, ...styleContainerCloseButton}} onPress={onClose}>
|
|
59
61
|
<OIcon
|
|
60
62
|
src={theme.images.general.close}
|
|
61
63
|
width={16}
|
|
@@ -91,7 +93,7 @@ const OModal = (props: Props): React.ReactElement => {
|
|
|
91
93
|
animationType="slide"
|
|
92
94
|
transparent={isTransparent}
|
|
93
95
|
visible={open}
|
|
94
|
-
onRequestClose={() => onClose()}
|
|
96
|
+
onRequestClose={() => onClose && onClose()}
|
|
95
97
|
style={{ height: '100%', flex: 1, position: 'absolute', ...style, zIndex: 9999 }}
|
|
96
98
|
>
|
|
97
99
|
{isAvoidKeyBoardView ? (
|
|
@@ -19,7 +19,11 @@ export const Container = styled.View`
|
|
|
19
19
|
|
|
20
20
|
export const FloatingBottomContainer = (props: any) => {
|
|
21
21
|
return (
|
|
22
|
-
<Container style={{
|
|
22
|
+
<Container style={{
|
|
23
|
+
width: windowWidth,
|
|
24
|
+
borderTopWidth: props?.borderTopWidth ?? 1,
|
|
25
|
+
borderRadius: props?.borderRadius ?? 0
|
|
26
|
+
}}>
|
|
23
27
|
{props.children}
|
|
24
28
|
</Container>
|
|
25
29
|
)
|
|
@@ -18,7 +18,13 @@ export interface LoginParams {
|
|
|
18
18
|
handleCheckPhoneCode?: any;
|
|
19
19
|
notificationState?: any;
|
|
20
20
|
handleReCaptcha?: any;
|
|
21
|
-
|
|
21
|
+
enableReCaptcha?: any;
|
|
22
|
+
otpType?: string,
|
|
23
|
+
setOtpType: (type: string) => void,
|
|
24
|
+
generateOtpCode: (values?: any) => void,
|
|
25
|
+
useLoginOtpEmail?: boolean,
|
|
26
|
+
useLoginOtpCellphone?: boolean,
|
|
27
|
+
useLoginOtp?: boolean
|
|
22
28
|
}
|
|
23
29
|
export interface ProfileParams {
|
|
24
30
|
navigation?: any;
|
|
@@ -59,6 +65,7 @@ export interface AddressListParams {
|
|
|
59
65
|
isFromProductsList?: boolean;
|
|
60
66
|
afterSignup?: boolean;
|
|
61
67
|
isFromCheckout?: boolean
|
|
68
|
+
loadAddresses: () => void
|
|
62
69
|
}
|
|
63
70
|
|
|
64
71
|
export interface AddressFormParams {
|
|
@@ -103,9 +110,20 @@ export interface SignupParams {
|
|
|
103
110
|
handleSendVerifyCode?: any;
|
|
104
111
|
handleCheckPhoneCode?: any;
|
|
105
112
|
notificationState?: any;
|
|
113
|
+
signUpTab?: string;
|
|
114
|
+
useSignUpFullDetails?: boolean;
|
|
115
|
+
useSignUpOtpEmail?: boolean;
|
|
116
|
+
useSignUpOtpCellphone?: boolean;
|
|
117
|
+
willVerifyOtpState?: boolean;
|
|
118
|
+
numOtpInputs?: number;
|
|
106
119
|
handleChangePromotions: () => void;
|
|
120
|
+
handleChangeInput?: (in1: any, in2: any) => void;
|
|
107
121
|
enableReCaptcha?: boolean;
|
|
108
|
-
|
|
122
|
+
generateOtpCode?: (in1?: any) => void;
|
|
123
|
+
handleReCaptcha?: (token?: any) => void;
|
|
124
|
+
setSignUpTab?: (in1: string) => void;
|
|
125
|
+
setWillVerifyOtpState?: (in1: boolean) => void;
|
|
126
|
+
setOtpState?: (in1: string) => void;
|
|
109
127
|
}
|
|
110
128
|
|
|
111
129
|
export interface PhoneInputParams {
|
|
@@ -146,13 +164,22 @@ export interface BusinessesListingParams {
|
|
|
146
164
|
defaultBusinessType?: any;
|
|
147
165
|
franchiseId?: any;
|
|
148
166
|
businessId?: any;
|
|
167
|
+
isGuestUser?: any;
|
|
168
|
+
handleUpdateBusinessList?: any;
|
|
169
|
+
priceLevelSelected?: any;
|
|
170
|
+
handleChangePriceLevel?: any;
|
|
171
|
+
businessTypeSelected?: any;
|
|
172
|
+
logosLayout?: boolean;
|
|
149
173
|
}
|
|
150
174
|
export interface HighestRatedBusinessesParams {
|
|
151
175
|
businessesList: { businesses: Array<any>, loading: boolean, error: null | string };
|
|
152
176
|
onBusinessClick?: void;
|
|
153
177
|
navigation?: any;
|
|
154
178
|
isLoading?: boolean;
|
|
155
|
-
getBusinesses: (newFetch: boolean) => void
|
|
179
|
+
getBusinesses: (newFetch: boolean) => void,
|
|
180
|
+
favoriteIds?: any,
|
|
181
|
+
setFavoriteIds?: any,
|
|
182
|
+
handleUpdateBusinessList?: any
|
|
156
183
|
}
|
|
157
184
|
export interface BusinessTypeFilterParams {
|
|
158
185
|
businessTypes?: Array<any>;
|
|
@@ -161,10 +188,11 @@ export interface BusinessTypeFilterParams {
|
|
|
161
188
|
defaultBusinessType?: string | null;
|
|
162
189
|
images?: any
|
|
163
190
|
typesState?: any
|
|
164
|
-
setBusinessTypes?: any
|
|
191
|
+
setBusinessTypes?: any,
|
|
192
|
+
isAppoint?: boolean | undefined
|
|
165
193
|
}
|
|
166
194
|
export interface BusinessControllerParams {
|
|
167
|
-
key?: number;
|
|
195
|
+
key?: string | number;
|
|
168
196
|
business?: any;
|
|
169
197
|
handleCustomClick?: any;
|
|
170
198
|
orderType?: any;
|
|
@@ -181,7 +209,12 @@ export interface BusinessControllerParams {
|
|
|
181
209
|
businessDeliveryPrice?: number,
|
|
182
210
|
businessDeliveryTime?: string,
|
|
183
211
|
businessPickupTime?: string,
|
|
184
|
-
businessDistance?: number
|
|
212
|
+
businessDistance?: number,
|
|
213
|
+
favoriteIds?: number[],
|
|
214
|
+
handleFavoriteBusiness?: any,
|
|
215
|
+
setFavoriteIds?: any;
|
|
216
|
+
handleUpdateBusinessList?: any;
|
|
217
|
+
enableIntersection?: boolean;
|
|
185
218
|
}
|
|
186
219
|
export interface BusinessProductsListingParams {
|
|
187
220
|
navigation?: any;
|
|
@@ -197,10 +230,16 @@ export interface BusinessProductsListingParams {
|
|
|
197
230
|
header?: any;
|
|
198
231
|
logo?: any;
|
|
199
232
|
productModal?: any;
|
|
233
|
+
alertState?: { open: boolean, content: any[] };
|
|
234
|
+
setAlertState?: any;
|
|
235
|
+
multiRemoveProducts?: (in1: any, in2: any) => {};
|
|
200
236
|
getNextProducts?: () => {};
|
|
201
237
|
handleChangeCategory: (value: any) => {};
|
|
202
238
|
setProductLogin?: () => {};
|
|
203
239
|
updateProductModal?: (value: any) => {};
|
|
240
|
+
handleUpdateProducts?: any;
|
|
241
|
+
professionalSelected?: any;
|
|
242
|
+
handleChangeProfessionalSelected?: any;
|
|
204
243
|
}
|
|
205
244
|
export interface BusinessBasicInformationParams {
|
|
206
245
|
navigation?: any;
|
|
@@ -245,17 +284,23 @@ export interface BusinessProductsListParams {
|
|
|
245
284
|
setCategoriesLayout?: any,
|
|
246
285
|
currentCart?: any,
|
|
247
286
|
setSubcategoriesSelected?: any,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
287
|
+
subcategoriesSelected?: any,
|
|
288
|
+
onClickCategory?: any,
|
|
289
|
+
lazyLoadProductsRecommended?: boolean,
|
|
290
|
+
isFiltMode?: boolean,
|
|
291
|
+
handleUpdateProducts?: any
|
|
251
292
|
}
|
|
252
293
|
export interface SingleProductCardParams {
|
|
253
|
-
businessId: any
|
|
294
|
+
businessId: any;
|
|
254
295
|
product: any;
|
|
255
296
|
isSoldOut: boolean;
|
|
256
297
|
onProductClick: any;
|
|
257
298
|
productAddedToCartLength: number;
|
|
258
|
-
style?: ViewStyle
|
|
299
|
+
style?: ViewStyle;
|
|
300
|
+
categoryState?: any;
|
|
301
|
+
handleFavoriteProduct?: any;
|
|
302
|
+
handleUpdateProducts?: any;
|
|
303
|
+
enableIntersection?: boolean;
|
|
259
304
|
}
|
|
260
305
|
export interface BusinessInformationParams {
|
|
261
306
|
navigation?: any,
|
|
@@ -289,6 +334,7 @@ export interface OrdersOptionParams {
|
|
|
289
334
|
orderList?: any,
|
|
290
335
|
franchiseId?: any,
|
|
291
336
|
activeOrders?: boolean,
|
|
337
|
+
pastOrders?: boolean,
|
|
292
338
|
pagination?: any,
|
|
293
339
|
titleContent?: string,
|
|
294
340
|
customArray?: Array<any>,
|
|
@@ -299,11 +345,23 @@ export interface OrdersOptionParams {
|
|
|
299
345
|
loadOrders?: any,
|
|
300
346
|
setOrderList?: any,
|
|
301
347
|
preOrders?: boolean,
|
|
348
|
+
reorderState?: any,
|
|
349
|
+
handleReorder?: (orderId: number) => {},
|
|
302
350
|
setOrdersLength?: ({ activeOrdersLength, previousOrdersLength }: { activeOrdersLength: number, previousOrdersLength: number }) => void,
|
|
303
351
|
ordersLength: { activeOrdersLength: number, previousOrdersLength: number },
|
|
304
352
|
setSelectedOrderId?: any,
|
|
305
353
|
setOpenMessges?: any,
|
|
306
|
-
loadMoreStatus?: boolean
|
|
354
|
+
loadMoreStatus?: boolean,
|
|
355
|
+
refreshOrders?: boolean,
|
|
356
|
+
setRefreshOrders?: (value: boolean) => void,
|
|
357
|
+
handleUpdateOrderList?: (orderId: number, changes: any) => {},
|
|
358
|
+
isBusiness?: boolean,
|
|
359
|
+
isProducts?: boolean,
|
|
360
|
+
businessOrderIds?: any,
|
|
361
|
+
products?: any,
|
|
362
|
+
businessesSearchList?: any,
|
|
363
|
+
hideOrders?: boolean,
|
|
364
|
+
BusinessControllerSkeletons?: any,
|
|
307
365
|
}
|
|
308
366
|
export interface ActiveOrdersParams {
|
|
309
367
|
orders?: any,
|
|
@@ -316,7 +374,8 @@ export interface ActiveOrdersParams {
|
|
|
316
374
|
loadMoreOrders?: () => {},
|
|
317
375
|
onNavigationRedirect?: (route: string, params?: any) => {},
|
|
318
376
|
isMessageView?: boolean,
|
|
319
|
-
handleClickOrder?: any
|
|
377
|
+
handleClickOrder?: any,
|
|
378
|
+
handleUpdateOrderList?: (orderId: number, changes: any) => {}
|
|
320
379
|
}
|
|
321
380
|
export interface PreviousOrdersParams {
|
|
322
381
|
orders?: any,
|
|
@@ -325,8 +384,9 @@ export interface PreviousOrdersParams {
|
|
|
325
384
|
orderID?: number
|
|
326
385
|
reorderLoading?: boolean,
|
|
327
386
|
loadMoreOrders?: () => {},
|
|
328
|
-
handleReorder
|
|
387
|
+
handleReorder?: (orderId: number) => {},
|
|
329
388
|
onNavigationRedirect?: (route: string, params?: any) => {}
|
|
389
|
+
handleUpdateOrderList?: (orderId: number, changes: any) => {}
|
|
330
390
|
}
|
|
331
391
|
export interface OrderDetailsParams {
|
|
332
392
|
navigation?: any,
|
|
@@ -358,25 +418,26 @@ export interface ProductItemAccordionParams {
|
|
|
358
418
|
isFromCheckout?: any
|
|
359
419
|
}
|
|
360
420
|
export interface ReviewOrderParams {
|
|
361
|
-
order?: { id: number,
|
|
362
|
-
stars?: any
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
421
|
+
order?: { id: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any };
|
|
422
|
+
stars?: any;
|
|
423
|
+
defaultStar?: number;
|
|
424
|
+
handleChangeInput?: any;
|
|
425
|
+
handleChangeRating?: any;
|
|
426
|
+
handleSendReview?: any;
|
|
427
|
+
formState?: any;
|
|
428
|
+
navigation?: any;
|
|
429
|
+
setIsReviewed?: (isReviewed: boolean) => void;
|
|
430
|
+
handleReviewState?: any;
|
|
431
|
+
setStars?: any;
|
|
432
|
+
onNavigationRedirect?: any;
|
|
372
433
|
}
|
|
373
434
|
export interface ReviewProductParams {
|
|
374
435
|
navigation?: any,
|
|
375
436
|
onNavigationRedirect?: any,
|
|
376
|
-
order?: { orderId: number,
|
|
437
|
+
order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
|
|
377
438
|
formState?: any,
|
|
378
439
|
handleChangeFormState?: any,
|
|
379
|
-
handleSendProductReview?: any
|
|
440
|
+
handleSendProductReview?: any;
|
|
380
441
|
}
|
|
381
442
|
export interface SingleProductReviewParams {
|
|
382
443
|
product: any,
|
|
@@ -386,12 +447,12 @@ export interface SingleProductReviewParams {
|
|
|
386
447
|
export interface ReviewDriverParams {
|
|
387
448
|
navigation?: any,
|
|
388
449
|
onNavigationRedirect?: any,
|
|
389
|
-
order?: { orderId: number,
|
|
450
|
+
order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
|
|
390
451
|
formState?: any,
|
|
391
452
|
setIsDriverReviewed?: (isReviewed: boolean) => {},
|
|
392
453
|
dirverReviews?: any,
|
|
393
454
|
setDriverReviews?: any,
|
|
394
|
-
handleSendDriverReview?: any
|
|
455
|
+
handleSendDriverReview?: any;
|
|
395
456
|
}
|
|
396
457
|
export interface MessagesParams {
|
|
397
458
|
type?: string,
|
|
@@ -489,6 +550,9 @@ export interface OrderTypeSelectParams {
|
|
|
489
550
|
defaultValue?: number;
|
|
490
551
|
configTypes?: Array<any>;
|
|
491
552
|
orderTypes: Array<any>;
|
|
553
|
+
setOrderTypeValue?: (value: number) => any,
|
|
554
|
+
isChewLayout?: boolean;
|
|
555
|
+
chewOrderTypes?: any;
|
|
492
556
|
}
|
|
493
557
|
export interface UpsellingProductsParams {
|
|
494
558
|
isCustomMode?: boolean;
|
|
@@ -562,7 +626,11 @@ export interface BusinessSearchParams {
|
|
|
562
626
|
filters: any,
|
|
563
627
|
businessTypes: Array<number>,
|
|
564
628
|
setFilters: (filters: any) => void,
|
|
565
|
-
lazySearch?: boolean
|
|
629
|
+
lazySearch?: boolean,
|
|
630
|
+
brandList?: any;
|
|
631
|
+
onNavigationRedirect?: any,
|
|
632
|
+
handleUpdateProducts: any,
|
|
633
|
+
handleUpdateBusinessList?: any;
|
|
566
634
|
}
|
|
567
635
|
|
|
568
636
|
export interface NoNetworkParams {
|
|
@@ -580,9 +648,93 @@ export interface PlaceSpotParams {
|
|
|
580
648
|
|
|
581
649
|
export interface PromotionParams {
|
|
582
650
|
navigation: any,
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
651
|
+
offersState: any,
|
|
652
|
+
handleSearchValue: any,
|
|
653
|
+
searchValue: string,
|
|
654
|
+
offerSelected: any,
|
|
655
|
+
setOfferSelected: any,
|
|
656
|
+
loadOffers: any
|
|
657
|
+
}
|
|
658
|
+
export interface SessionsParams {
|
|
659
|
+
navigation: any,
|
|
660
|
+
sessionsList: any,
|
|
661
|
+
actionState: any,
|
|
662
|
+
handleDeleteSession: any,
|
|
663
|
+
handleDeleteAllSessions: any
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
export interface otpParams {
|
|
667
|
+
willVerifyOtpState: boolean,
|
|
668
|
+
setWillVerifyOtpState: (val: boolean) => void,
|
|
669
|
+
onSubmit: () => void,
|
|
670
|
+
handleLoginOtp: (code: string) => void,
|
|
671
|
+
setAlertState: any;
|
|
672
|
+
pinCount: number;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export interface FavoriteParams {
|
|
676
|
+
favoriteList: any,
|
|
677
|
+
handleUpdateFavoriteList: (id: number, changes: any) => {},
|
|
678
|
+
pagination: any,
|
|
679
|
+
getFavoriteList: (value: number) => {},
|
|
680
|
+
navigation?: any,
|
|
681
|
+
onNavigationRedirect?: (route: string, params?: any) => {},
|
|
682
|
+
reorderState?: any,
|
|
683
|
+
handleReorder?: (orderId: number) => {},
|
|
684
|
+
isOrder?: boolean,
|
|
685
|
+
isProduct?: boolean,
|
|
686
|
+
isBusiness?: boolean
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
export interface SingleOrderCardParams {
|
|
690
|
+
order: any,
|
|
691
|
+
reorderLoading: any,
|
|
692
|
+
handleReorder?: (value: any) => {},
|
|
693
|
+
getOrderStatus: any,
|
|
694
|
+
handleFavoriteOrder?: (value: boolean) => {},
|
|
695
|
+
onNavigationRedirect?: (route: string, params?: any) => {},
|
|
696
|
+
pastOrders: any,
|
|
697
|
+
isMessageView?: any,
|
|
698
|
+
handleClickOrder: (value: any) => {}
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
export interface PreviousBusinessOrderedParams {
|
|
702
|
+
navigation?: any,
|
|
703
|
+
businessesList?: any,
|
|
704
|
+
setBusinessLoading?: any,
|
|
705
|
+
businessId?: number,
|
|
706
|
+
onNavigationRedirect?: any,
|
|
707
|
+
isBusinessesSearchList?: any,
|
|
708
|
+
businessLoading?: boolean
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export interface ServiceFormParams {
|
|
712
|
+
navigation?: any,
|
|
713
|
+
professionalSelected: any,
|
|
714
|
+
product: any,
|
|
715
|
+
handleSave: (value?: any) => {}
|
|
716
|
+
productCart?: any
|
|
717
|
+
isSoldOut: boolean,
|
|
718
|
+
maxProductQuantity: any,
|
|
719
|
+
businessSlug?: string,
|
|
720
|
+
onClose: any,
|
|
721
|
+
professionalList: any
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export interface ProfessionalFilterParams {
|
|
725
|
+
professionals?: any,
|
|
726
|
+
professionalSelected?: any,
|
|
727
|
+
handleChangeProfessionalSelected: any
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
export interface ProfessionalProfileParams {
|
|
731
|
+
professional: any,
|
|
732
|
+
handleChangeProfessionalSelected: any,
|
|
733
|
+
onClose: any
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export interface PreviousProductsOrderedParams {
|
|
737
|
+
products?: any,
|
|
738
|
+
onProductClick?: any,
|
|
739
|
+
isBusinessesSearchList?: boolean
|
|
588
740
|
}
|