ordering-ui-react-native 0.17.76 → 0.17.77-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 +8 -7
- package/src/DeliveryApp.tsx +43 -1
- package/src/components/BusinessInformation/index.tsx +10 -9
- package/src/components/BusinessesListing/index.tsx +1 -1
- package/src/components/OrderCreating/index.tsx +1 -21
- package/src/components/PaymentOptionsWebView/index.tsx +29 -8
- package/src/components/PhoneInputNumber/index.tsx +6 -2
- package/src/components/StripeMethodForm/index.tsx +136 -102
- package/src/components/VerifyPhone/styles.tsx +1 -2
- package/src/components/shared/OToast.tsx +3 -2
- package/src/types/index.tsx +5 -0
- package/src/utils/index.tsx +5 -0
- package/themes/business/index.tsx +2 -0
- package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +28 -25
- package/themes/business/src/components/BusinessController/index.tsx +0 -1
- package/themes/business/src/components/Chat/index.tsx +149 -118
- package/themes/business/src/components/DriverMap/index.tsx +17 -6
- package/themes/business/src/components/DriverSchedule/index.tsx +45 -8
- package/themes/business/src/components/GoogleMap/index.tsx +58 -57
- package/themes/business/src/components/LoginForm/Otp/index.tsx +31 -3
- package/themes/business/src/components/LoginForm/index.tsx +15 -22
- package/themes/business/src/components/MapView/index.tsx +10 -10
- package/themes/business/src/components/MessagesOption/index.tsx +20 -93
- package/themes/business/src/components/NewOrderNotification/index.tsx +128 -96
- package/themes/business/src/components/NotFoundSource/index.tsx +2 -2
- package/themes/business/src/components/OrderDetails/Business.tsx +1 -1
- package/themes/business/src/components/OrderDetails/Delivery.tsx +191 -6
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +102 -40
- package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +70 -67
- 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 +19 -18
- package/themes/business/src/components/OrderSummary/index.tsx +114 -123
- package/themes/business/src/components/OrdersOption/index.tsx +20 -22
- package/themes/business/src/components/PreviousMessages/FooterMessageComponent.tsx +103 -0
- package/themes/business/src/components/PreviousMessages/index.tsx +97 -55
- package/themes/business/src/components/PreviousOrders/OrderItem.tsx +17 -12
- package/themes/business/src/components/PreviousOrders/OrderList.tsx +88 -0
- package/themes/business/src/components/PreviousOrders/OrdersGroupedItem.tsx +1 -1
- package/themes/business/src/components/PreviousOrders/index.tsx +139 -174
- package/themes/business/src/components/ProductItemAccordion/index.tsx +27 -3
- package/themes/business/src/components/ReviewCustomer/index.tsx +18 -13
- package/themes/business/src/components/StoresList/index.tsx +3 -4
- package/themes/business/src/components/UserProfileForm/index.tsx +14 -15
- package/themes/business/src/components/shared/OLink.tsx +9 -2
- package/themes/business/src/components/shared/OModal.tsx +16 -9
- package/themes/business/src/components/shared/OText.tsx +6 -1
- package/themes/business/src/types/index.tsx +25 -10
- package/themes/business/src/utils/index.tsx +29 -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/Checkout/index.tsx +6 -0
- package/themes/kiosk/src/components/Intro/index.tsx +16 -1
- package/themes/kiosk/src/components/LoginForm/index.tsx +7 -9
- 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 +2 -2
- package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
- package/themes/original/index.tsx +1 -1
- package/themes/original/src/components/AddressDetails/index.tsx +19 -3
- package/themes/original/src/components/AddressForm/index.tsx +61 -39
- package/themes/original/src/components/AddressList/index.tsx +11 -6
- package/themes/original/src/components/AnalyticsSegment/index.tsx +193 -10
- package/themes/original/src/components/AppleLogin/index.tsx +4 -4
- package/themes/original/src/components/AppleLogin/styles.tsx +3 -1
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +153 -96
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +10 -12
- package/themes/original/src/components/BusinessController/index.tsx +81 -68
- package/themes/original/src/components/BusinessController/styles.tsx +12 -5
- package/themes/original/src/components/BusinessFeaturedController/index.tsx +21 -54
- package/themes/original/src/components/BusinessFeaturedController/styles.tsx +8 -0
- package/themes/original/src/components/BusinessInformation/index.tsx +140 -85
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +15 -20
- package/themes/original/src/components/BusinessListingSearch/index.tsx +348 -340
- package/themes/original/src/components/BusinessListingSearch/styles.tsx +0 -18
- package/themes/original/src/components/BusinessPreorder/index.tsx +103 -19
- package/themes/original/src/components/BusinessProductsCategories/index.tsx +1 -2
- package/themes/original/src/components/BusinessProductsList/index.tsx +15 -7
- package/themes/original/src/components/BusinessProductsList/styles.tsx +8 -3
- package/themes/original/src/components/BusinessProductsListing/UpsellingRedirect.tsx +1 -1
- package/themes/original/src/components/BusinessProductsListing/index.tsx +684 -559
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +1 -1
- package/themes/original/src/components/BusinessReviews/index.tsx +3 -1
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +70 -39
- package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +0 -1
- package/themes/original/src/components/BusinessesListing/index.tsx +0 -1
- package/themes/original/src/components/Cart/index.tsx +76 -79
- package/themes/original/src/components/CartContent/index.tsx +112 -19
- package/themes/original/src/components/CartContent/styles.tsx +16 -6
- package/themes/original/src/components/Checkout/index.tsx +294 -56
- package/themes/original/src/components/CitiesControl/index.tsx +1 -1
- package/themes/original/src/components/CouponControl/index.tsx +10 -3
- package/themes/original/src/components/DriverTips/index.tsx +52 -34
- package/themes/original/src/components/FacebookLogin/styles.tsx +3 -1
- package/themes/original/src/components/Favorite/index.tsx +2 -6
- package/themes/original/src/components/FavoriteList/index.tsx +1 -35
- package/themes/original/src/components/FloatingButton/index.tsx +10 -13
- package/themes/original/src/components/GPSButton/index.tsx +6 -4
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/index.tsx +7 -3
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/styles.tsx +2 -0
- package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +19 -6
- package/themes/original/src/components/GoogleLogin/styles.tsx +1 -1
- package/themes/original/src/components/GoogleMap/index.tsx +60 -5
- package/themes/original/src/components/Help/index.tsx +2 -2
- package/themes/original/src/components/HelpGuide/index.tsx +2 -2
- package/themes/original/src/components/HelpGuide/styles.tsx +1 -0
- package/themes/original/src/components/Home/index.tsx +13 -4
- package/themes/original/src/components/LastOrder/index.tsx +1 -34
- package/themes/original/src/components/LoginForm/Otp/index.tsx +91 -25
- package/themes/original/src/components/LoginForm/index.tsx +64 -34
- package/themes/original/src/components/LottieAnimation/index.tsx +88 -63
- package/themes/original/src/components/MessageListing/index.tsx +16 -42
- package/themes/original/src/components/Messages/index.tsx +14 -7
- package/themes/original/src/components/MomentOption/index.tsx +193 -90
- package/themes/original/src/components/MomentSelector/index.tsx +1 -1
- package/themes/original/src/components/MultiCart/index.tsx +41 -54
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +162 -50
- package/themes/original/src/components/MultiCheckout/index.tsx +329 -100
- package/themes/original/src/components/MultiCheckout/styles.tsx +3 -1
- package/themes/original/src/components/MultiOrdersDetails/SingleOrderCard.tsx +37 -224
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +54 -21
- package/themes/original/src/components/MultiOrdersDetails/styles.tsx +1 -1
- package/themes/original/src/components/MyOrders/index.tsx +37 -24
- package/themes/original/src/components/NavBar/index.tsx +20 -12
- package/themes/original/src/components/NotFoundSource/index.tsx +14 -10
- package/themes/original/src/components/Notifications/styles.tsx +1 -5
- package/themes/original/src/components/OrderDetails/OrderEta.tsx +76 -0
- package/themes/original/src/components/OrderDetails/OrderHistory.tsx +21 -5
- package/themes/original/src/components/OrderDetails/index.tsx +139 -306
- package/themes/original/src/components/OrderDetails/styles.tsx +0 -1
- package/themes/original/src/components/OrderItAgain/index.tsx +3 -1
- package/themes/original/src/components/OrderProgress/index.tsx +33 -57
- package/themes/original/src/components/OrderSummary/index.tsx +83 -57
- package/themes/original/src/components/OrderTypeSelector/index.tsx +2 -1
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +14 -14
- package/themes/original/src/components/OrdersOption/index.tsx +61 -81
- package/themes/original/src/components/OrdersOption/styles.tsx +1 -1
- package/themes/original/src/components/PageBanner/index.tsx +98 -38
- package/themes/original/src/components/PageBanner/styles.tsx +0 -10
- package/themes/original/src/components/PaymentOptionCard/index.tsx +180 -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 +95 -33
- package/themes/original/src/components/PhoneInputNumber/index.tsx +18 -4
- package/themes/original/src/components/ProductForm/index.tsx +103 -40
- package/themes/original/src/components/ProductForm/styles.tsx +3 -3
- package/themes/original/src/components/ProductItemAccordion/index.tsx +8 -6
- package/themes/original/src/components/ProductOptionSubOption/index.tsx +50 -21
- package/themes/original/src/components/ProductOptionSubOption/styles.tsx +10 -9
- package/themes/original/src/components/ProfessionalFilter/SingleProfessionalCard/index.tsx +108 -0
- package/themes/original/src/components/ProfessionalFilter/index.tsx +20 -50
- package/themes/original/src/components/ProfessionalProfile/index.tsx +36 -7
- package/themes/original/src/components/Promotions/index.tsx +2 -2
- package/themes/original/src/components/Promotions/styles.tsx +3 -1
- package/themes/original/src/components/ReviewProducts/index.tsx +16 -7
- package/themes/original/src/components/ScheduleAccordion/index.tsx +3 -3
- package/themes/original/src/components/ServiceForm/index.tsx +63 -20
- 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 +43 -27
- package/themes/original/src/components/SingleOrderCard/index.tsx +102 -63
- package/themes/original/src/components/SingleOrderCard/styles.tsx +1 -1
- package/themes/original/src/components/SingleProductCard/index.tsx +72 -31
- package/themes/original/src/components/SingleProductCard/styles.tsx +20 -4
- package/themes/original/src/components/SingleProductReview/styles.tsx +1 -1
- package/themes/original/src/components/StripeCardsList/index.tsx +49 -5
- package/themes/original/src/components/StripeElementsForm/index.tsx +48 -34
- package/themes/original/src/components/StripeElementsForm/naked.tsx +12 -1
- package/themes/original/src/components/UpsellingProducts/index.tsx +238 -224
- package/themes/original/src/components/UpsellingProducts/styles.tsx +12 -1
- package/themes/original/src/components/UserDetails/index.tsx +3 -1
- package/themes/original/src/components/UserFormDetails/index.tsx +78 -9
- package/themes/original/src/components/UserFormDetails/styles.tsx +1 -1
- package/themes/original/src/components/UserProfile/index.tsx +87 -76
- package/themes/original/src/components/UserProfileForm/index.tsx +10 -3
- package/themes/original/src/components/UserProfileForm/styles.tsx +1 -1
- package/themes/original/src/components/UserVerification/index.tsx +55 -50
- package/themes/original/src/components/WalletTransactionItem/index.tsx +2 -2
- package/themes/original/src/components/WalletTransactions/index.tsx +3 -3
- package/themes/original/src/components/Wallets/index.tsx +56 -33
- package/themes/original/src/components/Wallets/styles.tsx +3 -4
- package/themes/original/src/components/shared/OButton.tsx +6 -2
- package/themes/original/src/components/shared/OInput.tsx +6 -1
- package/themes/original/src/components/shared/OModal.tsx +3 -3
- package/themes/original/src/types/index.tsx +39 -10
- package/themes/original/src/utils/index.tsx +386 -1
- package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
- package/src/navigators/BottomNavigator.tsx +0 -117
- package/src/navigators/CheckoutNavigator.tsx +0 -66
- package/src/navigators/HomeNavigator.tsx +0 -202
- package/src/navigators/NavigationRef.tsx +0 -7
- package/src/navigators/RootNavigator.tsx +0 -269
- package/src/pages/Account.tsx +0 -34
- package/src/pages/AddressForm.tsx +0 -62
- package/src/pages/AddressList.tsx +0 -24
- package/src/pages/BusinessProductsList.tsx +0 -81
- package/src/pages/BusinessesListing.tsx +0 -43
- package/src/pages/CartList.tsx +0 -49
- package/src/pages/Checkout.tsx +0 -101
- package/src/pages/ForgotPassword.tsx +0 -24
- package/src/pages/Help.tsx +0 -23
- package/src/pages/HelpAccountAndPayment.tsx +0 -23
- package/src/pages/HelpGuide.tsx +0 -23
- package/src/pages/HelpOrder.tsx +0 -23
- package/src/pages/Home.tsx +0 -36
- package/src/pages/IntroductoryTutorial.tsx +0 -170
- package/src/pages/Login.tsx +0 -47
- package/src/pages/MomentOption.tsx +0 -30
- package/src/pages/MultiCheckout.tsx +0 -31
- package/src/pages/MultiOrdersDetails.tsx +0 -27
- package/src/pages/MyOrders.tsx +0 -40
- package/src/pages/NetworkError.tsx +0 -24
- package/src/pages/NotFound.tsx +0 -22
- package/src/pages/OrderDetails.tsx +0 -25
- package/src/pages/ProductDetails.tsx +0 -55
- package/src/pages/Profile.tsx +0 -36
- package/src/pages/ReviewDriver.tsx +0 -30
- package/src/pages/ReviewOrder.tsx +0 -32
- package/src/pages/ReviewProducts.tsx +0 -30
- package/src/pages/Sessions.tsx +0 -22
- package/src/pages/Signup.tsx +0 -53
- package/src/pages/SpinnerLoader.tsx +0 -10
- package/src/pages/Splash.tsx +0 -21
|
@@ -3,6 +3,7 @@ import { Pressable, StyleSheet, View, ScrollView, TouchableOpacity, Platform } f
|
|
|
3
3
|
import { useTheme } from 'styled-components/native'
|
|
4
4
|
import { Fade, Placeholder, PlaceholderLine } from 'rn-placeholder';
|
|
5
5
|
import FastImage from 'react-native-fast-image'
|
|
6
|
+
import NavBar from '../NavBar'
|
|
6
7
|
import {
|
|
7
8
|
WalletList,
|
|
8
9
|
useLanguage,
|
|
@@ -71,7 +72,8 @@ const WalletsUI = (props: any) => {
|
|
|
71
72
|
|
|
72
73
|
const [tabSelected, setTabSelected] = useState(isWalletCashEnabled ? 'cash' : 'credit_point')
|
|
73
74
|
const [openHistory, setOpenHistory] = useState(false)
|
|
74
|
-
const isChewLayout = theme?.header?.components?.layout?.type === 'chew'
|
|
75
|
+
const isChewLayout = theme?.header?.components?.layout?.type?.toLowerCase() === 'chew'
|
|
76
|
+
const hideWalletsTheme = theme?.bar_menu?.components?.wallets?.hidden
|
|
75
77
|
|
|
76
78
|
const isWalletEnabled = configs?.cash_wallet?.value && configs?.wallet_enabled?.value === '1' && (isWalletCashEnabled || isWalletPointsEnabled)
|
|
77
79
|
|
|
@@ -118,27 +120,41 @@ const WalletsUI = (props: any) => {
|
|
|
118
120
|
|
|
119
121
|
return (
|
|
120
122
|
<>
|
|
121
|
-
<Container
|
|
123
|
+
<Container
|
|
124
|
+
pdng={Platform.OS === 'ios' ? '10px' : '0'}
|
|
125
|
+
>
|
|
122
126
|
<Header>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
127
|
+
<View style={{
|
|
128
|
+
...{
|
|
129
|
+
width: '100%',
|
|
130
|
+
display: 'flex',
|
|
131
|
+
flexDirection: hideWalletsTheme ? 'column' : 'row',
|
|
132
|
+
justifyContent: hideWalletsTheme ? 'flex-start' : 'space-between',
|
|
133
|
+
alignItems: hideWalletsTheme ? 'flex-start' : 'center',
|
|
134
|
+
marginTop: hideWalletsTheme ? 0 : 10,
|
|
135
|
+
},
|
|
136
|
+
}}>
|
|
137
|
+
<NavBar
|
|
138
|
+
title={t('WALLETS', 'Wallets')}
|
|
139
|
+
titleAlign={'center'}
|
|
140
|
+
onActionLeft={goToBack}
|
|
141
|
+
showCall={false}
|
|
142
|
+
paddingTop={10}
|
|
143
|
+
btnStyle={{ paddingLeft: 0 }}
|
|
144
|
+
hideArrowLeft={!hideWalletsTheme}
|
|
140
145
|
/>
|
|
141
|
-
|
|
146
|
+
{isChewLayout && !openHistory && (
|
|
147
|
+
<OButton
|
|
148
|
+
text={t('WALLET_HISTORY', 'Wallet history')}
|
|
149
|
+
bgColor={theme.colors.white}
|
|
150
|
+
borderColor={theme.colors.lightGray}
|
|
151
|
+
imgRightSrc={null}
|
|
152
|
+
textStyle={{ fontSize: 12, color: theme.colors.disabled }}
|
|
153
|
+
onClick={() => setOpenHistory(true)}
|
|
154
|
+
style={{ borderRadius: 8, height: 40, width: hideWalletsTheme ? '100%' : 150, marginTop: hideWalletsTheme ? 10 : 0 }}
|
|
155
|
+
/>
|
|
156
|
+
)}
|
|
157
|
+
</View>
|
|
142
158
|
</Header>
|
|
143
159
|
|
|
144
160
|
{!walletList.loading &&
|
|
@@ -162,8 +178,8 @@ const WalletsUI = (props: any) => {
|
|
|
162
178
|
borderBottomWidth: 1,
|
|
163
179
|
borderBottomColor:
|
|
164
180
|
tabSelected === wallet.type
|
|
165
|
-
|
|
166
|
-
|
|
181
|
+
? theme.colors.textNormal
|
|
182
|
+
: theme.colors.border
|
|
167
183
|
}}
|
|
168
184
|
>
|
|
169
185
|
<OText>
|
|
@@ -179,9 +195,9 @@ const WalletsUI = (props: any) => {
|
|
|
179
195
|
<LoyaltyContent>
|
|
180
196
|
<LoyaltyWrapp>
|
|
181
197
|
<OText size={20}>
|
|
182
|
-
{`${t('LOYALTY_LEVEL_TITLE', 'Your level is')}
|
|
198
|
+
{`${t('LOYALTY_LEVEL_TITLE', 'Your level is')}`}
|
|
183
199
|
</OText>
|
|
184
|
-
{
|
|
200
|
+
{loyaltyLevel.image ? (
|
|
185
201
|
<FastImage
|
|
186
202
|
style={styles.logoStyle}
|
|
187
203
|
source={{
|
|
@@ -196,7 +212,7 @@ const WalletsUI = (props: any) => {
|
|
|
196
212
|
source={theme.images.dummies.loyaltyLevel}
|
|
197
213
|
resizeMode='contain'
|
|
198
214
|
/>
|
|
199
|
-
)}
|
|
215
|
+
)}
|
|
200
216
|
<OText
|
|
201
217
|
size={22}
|
|
202
218
|
weight='bold'
|
|
@@ -222,9 +238,13 @@ const WalletsUI = (props: any) => {
|
|
|
222
238
|
</OText>
|
|
223
239
|
</BalanceElement>
|
|
224
240
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
241
|
+
{currentWalletSelected?.type === 'cash' && (
|
|
242
|
+
<>
|
|
243
|
+
<View style={styles.dividerStyle} />
|
|
244
|
+
<GiftCardUI navigation={navigation} />
|
|
245
|
+
<View style={styles.dividerStyle} />
|
|
246
|
+
</>
|
|
247
|
+
)}
|
|
228
248
|
|
|
229
249
|
{!isChewLayout && (
|
|
230
250
|
<WalletTransactions
|
|
@@ -279,15 +299,18 @@ const WalletsUI = (props: any) => {
|
|
|
279
299
|
<ScrollView>
|
|
280
300
|
<WalletTransactionsWrapper>
|
|
281
301
|
<OButton
|
|
302
|
+
imgLeftStyle={{ width: 18 }}
|
|
282
303
|
imgRightSrc={null}
|
|
283
304
|
style={{
|
|
284
305
|
borderWidth: 0,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
306
|
+
width: 26,
|
|
307
|
+
height: 26,
|
|
308
|
+
backgroundColor: '#FFF',
|
|
309
|
+
borderColor: '#FFF',
|
|
310
|
+
shadowColor: '#FFF',
|
|
289
311
|
paddingLeft: 0,
|
|
290
|
-
paddingRight: 0
|
|
312
|
+
paddingRight: 0,
|
|
313
|
+
marginBottom: 10
|
|
291
314
|
}}
|
|
292
315
|
onClick={() => setOpenHistory(false)}
|
|
293
316
|
icon={AntDesignIcon}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import styled from 'styled-components/native'
|
|
2
2
|
|
|
3
3
|
export const Container = styled.View`
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
padding-horizontal: 20px;
|
|
5
|
+
padding-bottom: 20px;
|
|
6
|
+
padding-top: ${(props: any) => props.pdng};
|
|
6
7
|
`
|
|
7
8
|
export const Header = styled.View`
|
|
8
9
|
flex-direction: row;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: space-between;
|
|
11
10
|
`
|
|
12
11
|
export const SectionContent = styled.View`
|
|
13
12
|
width: 100%;
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
import * as React from 'react';
|
|
13
13
|
import styled, { useTheme } from 'styled-components/native';
|
|
14
14
|
import { OIcon } from './';
|
|
15
|
+
import { css } from 'styled-components';
|
|
15
16
|
|
|
16
17
|
const StyledButton = styled.View<Props>`
|
|
17
18
|
background-color: ${(props: any) => props.theme.colors.primary};
|
|
@@ -26,6 +27,9 @@ const StyledButton = styled.View<Props>`
|
|
|
26
27
|
padding-left: 20px;
|
|
27
28
|
padding-right: 20px;
|
|
28
29
|
position: relative;
|
|
30
|
+
${(props: any) => props?.theme?.general?.components?.buttons?.borderRadius && css`
|
|
31
|
+
border-radius: ${props?.theme?.general?.components?.buttons?.borderRadius}px;
|
|
32
|
+
`}
|
|
29
33
|
`
|
|
30
34
|
const StyledButtonDisabled = styled(StyledButton)`
|
|
31
35
|
background-color: ${(props: any) => props.theme.colors.disabled};
|
|
@@ -115,12 +119,12 @@ const OButton = (props: Props): React.ReactElement => {
|
|
|
115
119
|
style={{ width: props.isCircle ? 52 : props.style?.width, ...props.parentStyle }}
|
|
116
120
|
disabled={props.isDisabledWithSameStyles}
|
|
117
121
|
>
|
|
118
|
-
<StyledButton style={props.bgColor ? { ...props.style, backgroundColor: props.bgColor, borderColor: props.borderColor } : props.style}>
|
|
122
|
+
<StyledButton style={props.bgColor ? { ...props.style, backgroundColor: props.bgColor, borderColor: props.borderColor, borderRadius: parseInt(theme?.general?.components?.buttons?.borderRadius) || props.style?.borderRadius } : { ...props.style, borderRadius: parseInt(theme?.general?.components?.buttons?.borderRadius) || props.style?.borderRadius }}>
|
|
119
123
|
{props.icon ? (
|
|
120
124
|
<props.icon {...props.iconProps} />
|
|
121
125
|
) : null}
|
|
122
126
|
{props.imgLeftSrc ? (
|
|
123
|
-
<OIcon style={props.imgLeftStyle} src={props.imgLeftSrc} />
|
|
127
|
+
<OIcon style={props.imgLeftStyle} src={props.imgLeftSrc} color={theme.colors.textNormal} />
|
|
124
128
|
) : null}
|
|
125
129
|
{props.text ? (
|
|
126
130
|
<StyledText style={props.textStyle}>{props.text}</StyledText>
|
|
@@ -100,7 +100,12 @@ const OInput = (props: Props): React.ReactElement => {
|
|
|
100
100
|
ref={(e: any) => {
|
|
101
101
|
props.forwardRef && (props.forwardRef.current = e)
|
|
102
102
|
}}
|
|
103
|
-
style={
|
|
103
|
+
style={{
|
|
104
|
+
...(theme?.general?.components?.inputs?.color && {
|
|
105
|
+
color: theme?.general?.components?.inputs?.color
|
|
106
|
+
}),
|
|
107
|
+
...props?.inputStyle
|
|
108
|
+
}}
|
|
104
109
|
onFocus={() => setInputFocused(true)}
|
|
105
110
|
onBlur={() => setInputFocused(false)}
|
|
106
111
|
/>
|
|
@@ -52,7 +52,7 @@ const OModal = (props: Props): React.ReactElement => {
|
|
|
52
52
|
|
|
53
53
|
const theme = useTheme();
|
|
54
54
|
|
|
55
|
-
const
|
|
55
|
+
const renderSafeAreaView = () => (
|
|
56
56
|
<SafeAreaView style={styles.container}>
|
|
57
57
|
{!entireModal ? (
|
|
58
58
|
<View style={styles.centeredView}>
|
|
@@ -101,10 +101,10 @@ const OModal = (props: Props): React.ReactElement => {
|
|
|
101
101
|
enabled
|
|
102
102
|
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
|
|
103
103
|
>
|
|
104
|
-
|
|
104
|
+
{renderSafeAreaView()}
|
|
105
105
|
</KeyboardView>
|
|
106
106
|
) : (
|
|
107
|
-
|
|
107
|
+
renderSafeAreaView()
|
|
108
108
|
)}
|
|
109
109
|
</Modal>
|
|
110
110
|
);
|
|
@@ -19,6 +19,7 @@ export interface LoginParams {
|
|
|
19
19
|
notificationState?: any;
|
|
20
20
|
handleReCaptcha?: any;
|
|
21
21
|
enableReCaptcha?: any;
|
|
22
|
+
isGuest?: any;
|
|
22
23
|
otpType?: string,
|
|
23
24
|
setOtpType: (type: string) => void,
|
|
24
25
|
generateOtpCode: (values?: any) => void,
|
|
@@ -91,7 +92,8 @@ export interface AddressFormParams {
|
|
|
91
92
|
hasAddressDefault?: any,
|
|
92
93
|
isFromCheckout?: boolean
|
|
93
94
|
afterSignup?: boolean
|
|
94
|
-
isGuestFromStore?: boolean
|
|
95
|
+
isGuestFromStore?: boolean,
|
|
96
|
+
businessSlug?: number | string
|
|
95
97
|
}
|
|
96
98
|
export interface SignupParams {
|
|
97
99
|
navigation?: any;
|
|
@@ -118,6 +120,7 @@ export interface SignupParams {
|
|
|
118
120
|
useSignUpOtpEmail?: boolean;
|
|
119
121
|
useSignUpOtpCellphone?: boolean;
|
|
120
122
|
willVerifyOtpState?: boolean;
|
|
123
|
+
isGuest?: any;
|
|
121
124
|
numOtpInputs?: number;
|
|
122
125
|
handleChangePromotions: () => void;
|
|
123
126
|
handleChangeInput?: (in1: any, in2: any) => void;
|
|
@@ -144,6 +147,7 @@ export interface PhoneInputParams {
|
|
|
144
147
|
isDisabled?: any;
|
|
145
148
|
isStartValidation?: any;
|
|
146
149
|
changeCountry?: any;
|
|
150
|
+
updateStateWithSubmit?: boolean
|
|
147
151
|
}
|
|
148
152
|
|
|
149
153
|
export interface LanguageSelectorParams {
|
|
@@ -251,6 +255,9 @@ export interface BusinessProductsListingParams {
|
|
|
251
255
|
handleChangeProfessionalSelected?: any;
|
|
252
256
|
handleUpdateProfessionals?: any;
|
|
253
257
|
onBusinessClick?: any;
|
|
258
|
+
onNavigationRedirect?: any;
|
|
259
|
+
businessSingleId?: number | string
|
|
260
|
+
fromMulti?: boolean
|
|
254
261
|
}
|
|
255
262
|
export interface BusinessBasicInformationParams {
|
|
256
263
|
navigation?: any;
|
|
@@ -302,6 +309,7 @@ export interface BusinessProductsListParams {
|
|
|
302
309
|
handleUpdateProducts?: any,
|
|
303
310
|
navigation?: any;
|
|
304
311
|
previouslyProducts?: any;
|
|
312
|
+
businessSingleId?: number | string
|
|
305
313
|
}
|
|
306
314
|
export interface SingleProductCardParams {
|
|
307
315
|
businessId: any;
|
|
@@ -317,6 +325,8 @@ export interface SingleProductCardParams {
|
|
|
317
325
|
navigation?: any;
|
|
318
326
|
isPreviously?: any;
|
|
319
327
|
isProductId?: any;
|
|
328
|
+
viewString?: string;
|
|
329
|
+
businessSingleId?: number
|
|
320
330
|
}
|
|
321
331
|
export interface BusinessInformationParams {
|
|
322
332
|
navigation?: any,
|
|
@@ -345,6 +355,8 @@ export interface NotFoundSourceParams {
|
|
|
345
355
|
conditioned?: boolean,
|
|
346
356
|
onClickButton?: any,
|
|
347
357
|
children?: any
|
|
358
|
+
hideImage?: any
|
|
359
|
+
btnStyle?: any
|
|
348
360
|
}
|
|
349
361
|
export interface OrdersOptionParams {
|
|
350
362
|
orderList?: any,
|
|
@@ -363,8 +375,8 @@ export interface OrdersOptionParams {
|
|
|
363
375
|
preOrders?: boolean,
|
|
364
376
|
reorderState?: any,
|
|
365
377
|
handleReorder?: (orderId: number) => {},
|
|
366
|
-
setOrdersLength?: ({ activeOrdersLength, previousOrdersLength }: { activeOrdersLength: number, previousOrdersLength: number }) => void,
|
|
367
|
-
ordersLength: { activeOrdersLength: number, previousOrdersLength: number },
|
|
378
|
+
setOrdersLength?: ({ activeOrdersLength, previousOrdersLength, preordersLength }: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number }) => void,
|
|
379
|
+
ordersLength: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number },
|
|
368
380
|
setSelectedOrderId?: any,
|
|
369
381
|
setOpenMessges?: any,
|
|
370
382
|
loadMoreStatus?: boolean,
|
|
@@ -382,6 +394,7 @@ export interface OrdersOptionParams {
|
|
|
382
394
|
BusinessControllerSkeletons?: any,
|
|
383
395
|
businessPaginationProps?: any,
|
|
384
396
|
businesses?: any
|
|
397
|
+
businessId?: any;
|
|
385
398
|
}
|
|
386
399
|
export interface ActiveOrdersParams {
|
|
387
400
|
orders?: any,
|
|
@@ -425,6 +438,7 @@ export interface OrderDetailsParams {
|
|
|
425
438
|
onNavigationRedirect?: any,
|
|
426
439
|
reorderState?: any,
|
|
427
440
|
handleReorder?: any,
|
|
441
|
+
hideViaText?: boolean,
|
|
428
442
|
}
|
|
429
443
|
export interface ProductItemAccordionParams {
|
|
430
444
|
key?: any;
|
|
@@ -533,10 +547,10 @@ export interface FloatingButtonParams {
|
|
|
533
547
|
handleClick?: any;
|
|
534
548
|
handleEmpty?: any;
|
|
535
549
|
iosBottom?: number
|
|
536
|
-
hideButton?: boolean
|
|
537
550
|
}
|
|
538
551
|
export interface MomentOptionParams {
|
|
539
552
|
navigation: any;
|
|
553
|
+
isCart?: any;
|
|
540
554
|
nopadding?: boolean;
|
|
541
555
|
datesList: Array<any>;
|
|
542
556
|
hoursList: Array<any>;
|
|
@@ -560,6 +574,9 @@ export interface BusinessPreorderParams {
|
|
|
560
574
|
goToBack: any;
|
|
561
575
|
business: any;
|
|
562
576
|
handleBusinessClick: (value: any) => {};
|
|
577
|
+
getActualSchedule?: any;
|
|
578
|
+
cateringPreorder?: boolean;
|
|
579
|
+
preorderLeadTime?: number
|
|
563
580
|
}
|
|
564
581
|
export interface BusinessMenuListParams {
|
|
565
582
|
menu: any;
|
|
@@ -583,7 +600,7 @@ export interface UpsellingProductsParams {
|
|
|
583
600
|
business?: any;
|
|
584
601
|
businessId?: number;
|
|
585
602
|
cartProducts?: Array<any>;
|
|
586
|
-
handleUpsellingPage: () => void;
|
|
603
|
+
handleUpsellingPage: (cart ?: any) => void;
|
|
587
604
|
openUpselling: boolean;
|
|
588
605
|
canOpenUpselling?: boolean;
|
|
589
606
|
setCanOpenUpselling?: (value: any) => void;
|
|
@@ -594,6 +611,8 @@ export interface UpsellingProductsParams {
|
|
|
594
611
|
products?: any;
|
|
595
612
|
onNavigationRedirect?: any;
|
|
596
613
|
onGoBack?: any;
|
|
614
|
+
singleBusiness?: any;
|
|
615
|
+
isFranchiseApp?: any;
|
|
597
616
|
}
|
|
598
617
|
|
|
599
618
|
export interface GoogleMapsParams {
|
|
@@ -607,7 +626,9 @@ export interface GoogleMapsParams {
|
|
|
607
626
|
isSetInputs?: boolean,
|
|
608
627
|
locations?: Array<any>,
|
|
609
628
|
setSaveLocation?: (val: boolean) => void,
|
|
610
|
-
handleToggleMap?: () => void
|
|
629
|
+
handleToggleMap?: () => void,
|
|
630
|
+
isIntGeoCoder: boolean,
|
|
631
|
+
businessZones?: any
|
|
611
632
|
}
|
|
612
633
|
|
|
613
634
|
export interface HelpParams {
|
|
@@ -703,6 +724,10 @@ export interface otpParams {
|
|
|
703
724
|
handleLoginOtp: (code: string) => void,
|
|
704
725
|
setAlertState: any;
|
|
705
726
|
pinCount: number;
|
|
727
|
+
otpError: any,
|
|
728
|
+
setOtpError: any
|
|
729
|
+
isCheckingCode: boolean
|
|
730
|
+
setCheckingCode: (value: boolean) => void
|
|
706
731
|
}
|
|
707
732
|
|
|
708
733
|
export interface FavoriteParams {
|
|
@@ -729,7 +754,7 @@ export interface SingleOrderCardParams {
|
|
|
729
754
|
pastOrders: any,
|
|
730
755
|
isMessageView?: any,
|
|
731
756
|
handleClickOrder: (value: any) => {},
|
|
732
|
-
handleRemoveCart: () => {},
|
|
757
|
+
handleRemoveCart: (value: any) => {},
|
|
733
758
|
cartState: any
|
|
734
759
|
}
|
|
735
760
|
|
|
@@ -758,13 +783,16 @@ export interface ServiceFormParams {
|
|
|
758
783
|
professionalList: any,
|
|
759
784
|
productObject?: any,
|
|
760
785
|
professionalListState?: any,
|
|
761
|
-
isCartProduct?: any
|
|
786
|
+
isCartProduct?: any,
|
|
787
|
+
actionStatus?: any,
|
|
788
|
+
handleCreateGuestUser?: any
|
|
762
789
|
}
|
|
763
790
|
|
|
764
791
|
export interface ProfessionalFilterParams {
|
|
765
792
|
professionals?: any,
|
|
766
793
|
professionalSelected?: any,
|
|
767
|
-
handleChangeProfessionalSelected: any
|
|
794
|
+
handleChangeProfessionalSelected: any,
|
|
795
|
+
handleUpdateProfessionals?: any
|
|
768
796
|
}
|
|
769
797
|
|
|
770
798
|
export interface ProfessionalProfileParams {
|
|
@@ -781,7 +809,8 @@ export interface OrderItAgainParams {
|
|
|
781
809
|
currentCart: any,
|
|
782
810
|
handleUpdateProducts: any,
|
|
783
811
|
navigation: any,
|
|
784
|
-
searchValue?: string
|
|
812
|
+
searchValue?: string,
|
|
813
|
+
businessSingleId?: number | string
|
|
785
814
|
}
|
|
786
815
|
|
|
787
816
|
export interface PreviousProductsOrderedParams {
|