ordering-ui-react-native 0.17.49 → 0.17.50-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/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 +4 -4
- package/src/types/index.tsx +5 -0
- package/src/utils/index.tsx +7 -1
- package/themes/business/index.tsx +2 -0
- package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +265 -240
- package/themes/business/src/components/AcceptOrRejectOrder/styles.tsx +6 -4
- package/themes/business/src/components/BusinessController/index.tsx +0 -1
- package/themes/business/src/components/Chat/index.tsx +125 -113
- package/themes/business/src/components/DriverMap/index.tsx +17 -6
- package/themes/business/src/components/DriverSchedule/index.tsx +29 -2
- package/themes/business/src/components/GoogleMap/index.tsx +58 -57
- package/themes/business/src/components/LoginForm/Otp/index.tsx +120 -0
- package/themes/business/src/components/LoginForm/Otp/styles.tsx +7 -0
- package/themes/business/src/components/LoginForm/index.tsx +238 -80
- package/themes/business/src/components/LoginForm/styles.tsx +10 -0
- package/themes/business/src/components/MapView/index.tsx +10 -10
- package/themes/business/src/components/NewOrderNotification/index.tsx +35 -21
- package/themes/business/src/components/OrderDetails/Delivery.tsx +30 -4
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +93 -50
- package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +59 -62
- package/themes/business/src/components/OrderDetailsLogistic/index.tsx +195 -0
- package/themes/business/src/components/OrderDetailsLogistic/styles.tsx +5 -0
- package/themes/business/src/components/OrderMessage/index.tsx +18 -17
- package/themes/business/src/components/OrderSummary/index.tsx +113 -121
- package/themes/business/src/components/OrdersOption/index.tsx +32 -75
- package/themes/business/src/components/PreviousOrders/OrderItem.tsx +250 -0
- package/themes/business/src/components/PreviousOrders/OrdersGroupedItem.tsx +115 -0
- package/themes/business/src/components/PreviousOrders/index.tsx +445 -243
- package/themes/business/src/components/PreviousOrders/styles.tsx +31 -3
- package/themes/business/src/components/ProductItemAccordion/index.tsx +27 -3
- package/themes/business/src/components/ReviewCustomer/index.tsx +29 -14
- package/themes/business/src/components/StoresList/index.tsx +2 -2
- package/themes/business/src/components/UserProfileForm/index.tsx +11 -13
- package/themes/business/src/components/shared/OLink.tsx +33 -13
- package/themes/business/src/components/shared/OModal.tsx +16 -9
- package/themes/business/src/components/shared/OText.tsx +8 -2
- package/themes/business/src/types/index.tsx +32 -2
- package/themes/business/src/utils/index.tsx +44 -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/BusinessesListing/index.tsx +2 -1
- package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
- package/themes/kiosk/src/components/LoginForm/Otp/index.tsx +92 -0
- package/themes/kiosk/src/components/LoginForm/Otp/styles.tsx +7 -0
- package/themes/kiosk/src/components/LoginForm/index.tsx +480 -156
- package/themes/kiosk/src/components/LoginForm/styles.tsx +14 -1
- package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
- package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
- package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +8 -10
- package/themes/kiosk/src/components/PhoneInputNumber/index.tsx +3 -2
- package/themes/kiosk/src/components/PhoneInputNumber/styles.tsx +1 -3
- package/themes/kiosk/src/components/ProductForm/index.tsx +1 -14
- package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
- package/themes/kiosk/src/components/shared/OModal.tsx +14 -11
- package/themes/kiosk/src/layouts/Container.tsx +7 -1
- package/themes/kiosk/src/types/index.d.ts +13 -0
- package/themes/kiosk/src/utils/index.tsx +15 -0
- package/themes/original/index.tsx +6 -0
- package/themes/original/src/components/AddressDetails/index.tsx +29 -11
- package/themes/original/src/components/AddressForm/index.tsx +79 -44
- package/themes/original/src/components/AddressList/index.tsx +27 -22
- package/themes/original/src/components/AddressList/styles.tsx +4 -2
- 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 +160 -91
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +9 -7
- package/themes/original/src/components/BusinessController/index.tsx +146 -68
- package/themes/original/src/components/BusinessController/styles.tsx +22 -2
- 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 +10 -31
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +23 -22
- package/themes/original/src/components/BusinessListingSearch/index.tsx +352 -326
- package/themes/original/src/components/BusinessPreorder/index.tsx +97 -16
- package/themes/original/src/components/BusinessProductsList/index.tsx +23 -14
- 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 +669 -513
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +2 -2
- package/themes/original/src/components/BusinessReviews/index.tsx +3 -1
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +1 -1
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +98 -79
- package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +1 -11
- package/themes/original/src/components/BusinessesListing/index.tsx +0 -1
- package/themes/original/src/components/Cart/index.tsx +100 -67
- package/themes/original/src/components/CartContent/index.tsx +115 -19
- package/themes/original/src/components/CartContent/styles.tsx +17 -7
- package/themes/original/src/components/Checkout/index.tsx +366 -173
- package/themes/original/src/components/Checkout/styles.tsx +4 -2
- package/themes/original/src/components/CitiesControl/index.tsx +89 -0
- package/themes/original/src/components/CitiesControl/styles.tsx +17 -0
- package/themes/original/src/components/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 +8 -9
- package/themes/original/src/components/Favorite/styles.tsx +1 -1
- package/themes/original/src/components/FavoriteList/index.tsx +51 -80
- package/themes/original/src/components/FloatingButton/index.tsx +1 -2
- package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
- package/themes/original/src/components/GPSButton/index.tsx +6 -4
- package/themes/original/src/components/GPSButton/styles.ts +3 -3
- package/themes/original/src/components/GiftCard/GiftCardUI/index.tsx +96 -0
- package/themes/original/src/components/GiftCard/GiftCardUI/styles.tsx +5 -0
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/index.tsx +100 -0
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/styles.tsx +8 -0
- package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +191 -0
- package/themes/original/src/components/GiftCard/RedeemGiftCard/styles.tsx +8 -0
- package/themes/original/src/components/GiftCard/SendGiftCard/index.tsx +165 -0
- package/themes/original/src/components/GiftCard/SendGiftCard/styles.tsx +9 -0
- package/themes/original/src/components/GoogleLogin/styles.tsx +1 -1
- package/themes/original/src/components/GoogleMap/index.tsx +15 -4
- package/themes/original/src/components/Help/index.tsx +8 -8
- package/themes/original/src/components/HelpAccountAndPayment/index.tsx +10 -31
- package/themes/original/src/components/HelpAccountAndPayment/styles.tsx +5 -3
- package/themes/original/src/components/HelpGuide/index.tsx +6 -6
- package/themes/original/src/components/HelpGuide/styles.tsx +6 -0
- package/themes/original/src/components/HelpOrder/index.tsx +6 -15
- package/themes/original/src/components/HelpOrder/styles.tsx +8 -1
- 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 +55 -13
- package/themes/original/src/components/LoginForm/Otp/styles.tsx +0 -1
- package/themes/original/src/components/LoginForm/index.tsx +64 -26
- package/themes/original/src/components/LottieAnimation/index.tsx +89 -55
- package/themes/original/src/components/MessageListing/index.tsx +16 -42
- package/themes/original/src/components/Messages/index.tsx +32 -10
- package/themes/original/src/components/MomentOption/index.tsx +195 -88
- package/themes/original/src/components/MultiCart/index.tsx +50 -0
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +151 -49
- package/themes/original/src/components/MultiCheckout/index.tsx +308 -88
- 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 +68 -21
- package/themes/original/src/components/MultiOrdersDetails/styles.tsx +1 -1
- package/themes/original/src/components/MyOrders/index.tsx +77 -52
- package/themes/original/src/components/NavBar/index.tsx +18 -18
- package/themes/original/src/components/NotFoundSource/index.tsx +14 -10
- package/themes/original/src/components/Notifications/index.tsx +46 -50
- package/themes/original/src/components/Notifications/styles.tsx +6 -3
- package/themes/original/src/components/OrderDetails/OrderEta.tsx +76 -0
- package/themes/original/src/components/OrderDetails/OrderHistory.tsx +15 -3
- package/themes/original/src/components/OrderDetails/index.tsx +190 -358
- 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 +93 -114
- package/themes/original/src/components/OrderProgress/styles.tsx +5 -0
- package/themes/original/src/components/OrderSummary/index.tsx +85 -57
- package/themes/original/src/components/OrderTypeSelector/index.tsx +1 -1
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +24 -19
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +14 -14
- package/themes/original/src/components/OrdersOption/index.tsx +76 -66
- package/themes/original/src/components/OrdersOption/styles.tsx +1 -1
- package/themes/original/src/components/PageBanner/index.tsx +171 -0
- package/themes/original/src/components/PageBanner/styles.tsx +11 -0
- 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 +64 -7
- package/themes/original/src/components/PhoneInputNumber/index.tsx +3 -3
- package/themes/original/src/components/PlaceSpot/index.tsx +12 -6
- package/themes/original/src/components/ProductForm/index.tsx +114 -36
- package/themes/original/src/components/ProductForm/styles.tsx +5 -7
- package/themes/original/src/components/ProductItemAccordion/index.tsx +17 -14
- package/themes/original/src/components/ProductOptionSubOption/index.tsx +24 -14
- package/themes/original/src/components/ProductOptionSubOption/styles.tsx +3 -4
- 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 +234 -220
- package/themes/original/src/components/Promotions/styles.tsx +10 -3
- package/themes/original/src/components/ReviewDriver/index.tsx +3 -3
- package/themes/original/src/components/ReviewOrder/index.tsx +26 -9
- package/themes/original/src/components/ReviewOrder/styles.tsx +7 -0
- package/themes/original/src/components/ReviewProducts/index.tsx +23 -11
- package/themes/original/src/components/ReviewTrigger/index.tsx +27 -9
- package/themes/original/src/components/ReviewTrigger/styles.tsx +8 -1
- package/themes/original/src/components/ScheduleAccordion/index.tsx +68 -0
- package/themes/original/src/components/ScheduleAccordion/styles.tsx +14 -0
- package/themes/original/src/components/ServiceForm/index.tsx +66 -17
- 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 -20
- package/themes/original/src/components/SingleOrderCard/index.tsx +130 -52
- package/themes/original/src/components/SingleOrderCard/styles.tsx +11 -2
- package/themes/original/src/components/SingleProductCard/index.tsx +72 -34
- package/themes/original/src/components/SingleProductCard/styles.tsx +22 -4
- package/themes/original/src/components/SingleProductReview/styles.tsx +1 -1
- package/themes/original/src/components/StripeCardsList/index.tsx +13 -3
- package/themes/original/src/components/StripeElementsForm/index.tsx +67 -34
- 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 +8 -4
- package/themes/original/src/components/UserFormDetails/index.tsx +76 -7
- package/themes/original/src/components/UserFormDetails/styles.tsx +1 -1
- package/themes/original/src/components/UserProfile/index.tsx +12 -29
- package/themes/original/src/components/UserProfileForm/index.tsx +27 -29
- package/themes/original/src/components/UserProfileForm/styles.tsx +7 -0
- 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 +67 -24
- package/themes/original/src/components/Wallets/styles.tsx +3 -4
- package/themes/original/src/components/shared/HeaderTitle.tsx +8 -3
- package/themes/original/src/components/shared/OButton.tsx +6 -2
- package/themes/original/src/components/shared/OInput.tsx +16 -2
- package/themes/original/src/components/shared/OModal.tsx +3 -3
- package/themes/original/src/layouts/Container.tsx +1 -1
- package/themes/original/src/types/index.tsx +40 -11
- package/themes/original/src/utils/index.tsx +375 -58
- package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
|
@@ -3,6 +3,7 @@ import { ImageSourcePropType, ImageStyle, ViewStyle, TextInputProps, TextStyle }
|
|
|
3
3
|
import styled from 'styled-components/native';
|
|
4
4
|
import OIcon from './OIcon';
|
|
5
5
|
import MaterialIcon from 'react-native-vector-icons/MaterialIcons'
|
|
6
|
+
import { useTheme } from 'styled-components/native';
|
|
6
7
|
|
|
7
8
|
const Input = styled.TextInput`
|
|
8
9
|
flex-grow: 1;
|
|
@@ -39,6 +40,7 @@ interface Props extends TextInputProps {
|
|
|
39
40
|
inputStyle?: TextStyle;
|
|
40
41
|
wrapperRef?: any;
|
|
41
42
|
onPress?: any;
|
|
43
|
+
isFocusHighlight?: boolean
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
const Wrapper = styled.Pressable`
|
|
@@ -54,12 +56,16 @@ const Wrapper = styled.Pressable`
|
|
|
54
56
|
`;
|
|
55
57
|
|
|
56
58
|
const OInput = (props: Props): React.ReactElement => {
|
|
59
|
+
const theme = useTheme();
|
|
60
|
+
const [inputFocused, setInputFocused] = React.useState(false)
|
|
57
61
|
return (
|
|
58
62
|
<Wrapper
|
|
59
63
|
onPress={() => { props.forwardRef?.current?.focus?.(); props.onPress && props.onPress() }}
|
|
60
64
|
style={{
|
|
61
65
|
backgroundColor: props.bgColor,
|
|
62
|
-
borderColor: props.
|
|
66
|
+
borderColor: !props.isFocusHighlight
|
|
67
|
+
? props.borderColor
|
|
68
|
+
: inputFocused ? theme.colors.primary : theme.colors.border,
|
|
63
69
|
...props.style,
|
|
64
70
|
}}>
|
|
65
71
|
{props.icon ? (
|
|
@@ -94,7 +100,14 @@ const OInput = (props: Props): React.ReactElement => {
|
|
|
94
100
|
ref={(e: any) => {
|
|
95
101
|
props.forwardRef && (props.forwardRef.current = e)
|
|
96
102
|
}}
|
|
97
|
-
style={
|
|
103
|
+
style={{
|
|
104
|
+
...(theme?.general?.components?.inputs?.color && {
|
|
105
|
+
color: theme?.general?.components?.inputs?.color
|
|
106
|
+
}),
|
|
107
|
+
...props?.inputStyle
|
|
108
|
+
}}
|
|
109
|
+
onFocus={() => setInputFocused(true)}
|
|
110
|
+
onBlur={() => setInputFocused(false)}
|
|
98
111
|
/>
|
|
99
112
|
{props.iconRight && (
|
|
100
113
|
<OIcon
|
|
@@ -114,6 +127,7 @@ OInput.defaultProps = {
|
|
|
114
127
|
iconColor: '#959595',
|
|
115
128
|
bgColor: 'white',
|
|
116
129
|
borderColor: 'white',
|
|
130
|
+
isFocusHighlight: false
|
|
117
131
|
};
|
|
118
132
|
|
|
119
133
|
export default OInput;
|
|
@@ -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;
|
|
@@ -173,6 +176,9 @@ export interface BusinessesListingParams {
|
|
|
173
176
|
handleChangePriceLevel?: any;
|
|
174
177
|
businessTypeSelected?: any;
|
|
175
178
|
logosLayout?: boolean;
|
|
179
|
+
isCustomLayout?: boolean;
|
|
180
|
+
citiesState?: any;
|
|
181
|
+
actualSlug?: any;
|
|
176
182
|
}
|
|
177
183
|
export interface HighestRatedBusinessesParams {
|
|
178
184
|
businessesList: { businesses: Array<any>, loading: boolean, error: null | string };
|
|
@@ -218,6 +224,8 @@ export interface BusinessControllerParams {
|
|
|
218
224
|
setFavoriteIds?: any;
|
|
219
225
|
handleUpdateBusinessList?: any;
|
|
220
226
|
enableIntersection?: boolean;
|
|
227
|
+
isCustomLayout?: boolean;
|
|
228
|
+
getBusinessOffer?: any;
|
|
221
229
|
handleCustomUpdate?: (businessId: number, changes: any) => {};
|
|
222
230
|
}
|
|
223
231
|
export interface BusinessProductsListingParams {
|
|
@@ -244,6 +252,10 @@ export interface BusinessProductsListingParams {
|
|
|
244
252
|
handleUpdateProducts?: any;
|
|
245
253
|
professionalSelected?: any;
|
|
246
254
|
handleChangeProfessionalSelected?: any;
|
|
255
|
+
handleUpdateProfessionals?: any;
|
|
256
|
+
onBusinessClick?: any;
|
|
257
|
+
onNavigationRedirect?: any;
|
|
258
|
+
businessSingleId?: number | string
|
|
247
259
|
}
|
|
248
260
|
export interface BusinessBasicInformationParams {
|
|
249
261
|
navigation?: any;
|
|
@@ -295,6 +307,7 @@ export interface BusinessProductsListParams {
|
|
|
295
307
|
handleUpdateProducts?: any,
|
|
296
308
|
navigation?: any;
|
|
297
309
|
previouslyProducts?: any;
|
|
310
|
+
businessSingleId?: number | string
|
|
298
311
|
}
|
|
299
312
|
export interface SingleProductCardParams {
|
|
300
313
|
businessId: any;
|
|
@@ -310,6 +323,8 @@ export interface SingleProductCardParams {
|
|
|
310
323
|
navigation?: any;
|
|
311
324
|
isPreviously?: any;
|
|
312
325
|
isProductId?: any;
|
|
326
|
+
viewString?: string;
|
|
327
|
+
businessSingleId?: number
|
|
313
328
|
}
|
|
314
329
|
export interface BusinessInformationParams {
|
|
315
330
|
navigation?: any,
|
|
@@ -338,6 +353,8 @@ export interface NotFoundSourceParams {
|
|
|
338
353
|
conditioned?: boolean,
|
|
339
354
|
onClickButton?: any,
|
|
340
355
|
children?: any
|
|
356
|
+
hideImage?: any
|
|
357
|
+
btnStyle?: any
|
|
341
358
|
}
|
|
342
359
|
export interface OrdersOptionParams {
|
|
343
360
|
orderList?: any,
|
|
@@ -356,8 +373,8 @@ export interface OrdersOptionParams {
|
|
|
356
373
|
preOrders?: boolean,
|
|
357
374
|
reorderState?: any,
|
|
358
375
|
handleReorder?: (orderId: number) => {},
|
|
359
|
-
setOrdersLength?: ({ activeOrdersLength, previousOrdersLength }: { activeOrdersLength: number, previousOrdersLength: number }) => void,
|
|
360
|
-
ordersLength: { activeOrdersLength: number, previousOrdersLength: number },
|
|
376
|
+
setOrdersLength?: ({ activeOrdersLength, previousOrdersLength, preordersLength }: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number }) => void,
|
|
377
|
+
ordersLength: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number },
|
|
361
378
|
setSelectedOrderId?: any,
|
|
362
379
|
setOpenMessges?: any,
|
|
363
380
|
loadMoreStatus?: boolean,
|
|
@@ -429,7 +446,8 @@ export interface ProductItemAccordionParams {
|
|
|
429
446
|
onDeleteProduct?: (product: any) => void,
|
|
430
447
|
onEditProduct?: (product: any) => void,
|
|
431
448
|
offsetDisabled?: any,
|
|
432
|
-
isFromCheckout?: any
|
|
449
|
+
isFromCheckout?: any,
|
|
450
|
+
isDisabledEdit?: any
|
|
433
451
|
}
|
|
434
452
|
export interface ReviewOrderParams {
|
|
435
453
|
order?: { id: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any };
|
|
@@ -528,6 +546,7 @@ export interface FloatingButtonParams {
|
|
|
528
546
|
}
|
|
529
547
|
export interface MomentOptionParams {
|
|
530
548
|
navigation: any;
|
|
549
|
+
isCart?: any;
|
|
531
550
|
nopadding?: boolean;
|
|
532
551
|
datesList: Array<any>;
|
|
533
552
|
hoursList: Array<any>;
|
|
@@ -574,7 +593,7 @@ export interface UpsellingProductsParams {
|
|
|
574
593
|
business?: any;
|
|
575
594
|
businessId?: number;
|
|
576
595
|
cartProducts?: Array<any>;
|
|
577
|
-
handleUpsellingPage: () => void;
|
|
596
|
+
handleUpsellingPage: (cart ?: any) => void;
|
|
578
597
|
openUpselling: boolean;
|
|
579
598
|
canOpenUpselling?: boolean;
|
|
580
599
|
setCanOpenUpselling?: (value: any) => void;
|
|
@@ -585,6 +604,8 @@ export interface UpsellingProductsParams {
|
|
|
585
604
|
products?: any;
|
|
586
605
|
onNavigationRedirect?: any;
|
|
587
606
|
onGoBack?: any;
|
|
607
|
+
singleBusiness?: any;
|
|
608
|
+
isFranchiseApp?: any;
|
|
588
609
|
}
|
|
589
610
|
|
|
590
611
|
export interface GoogleMapsParams {
|
|
@@ -598,7 +619,8 @@ export interface GoogleMapsParams {
|
|
|
598
619
|
isSetInputs?: boolean,
|
|
599
620
|
locations?: Array<any>,
|
|
600
621
|
setSaveLocation?: (val: boolean) => void,
|
|
601
|
-
handleToggleMap?: () => void
|
|
622
|
+
handleToggleMap?: () => void,
|
|
623
|
+
isIntGeoCoder: boolean
|
|
602
624
|
}
|
|
603
625
|
|
|
604
626
|
export interface HelpParams {
|
|
@@ -667,6 +689,7 @@ export interface PlaceSpotParams {
|
|
|
667
689
|
vehicle?: any,
|
|
668
690
|
setVehicle?: any,
|
|
669
691
|
handleChangeSpot?: any
|
|
692
|
+
setPlaceSpotNumber?: any
|
|
670
693
|
}
|
|
671
694
|
|
|
672
695
|
export interface PromotionParams {
|
|
@@ -693,6 +716,8 @@ export interface otpParams {
|
|
|
693
716
|
handleLoginOtp: (code: string) => void,
|
|
694
717
|
setAlertState: any;
|
|
695
718
|
pinCount: number;
|
|
719
|
+
otpError: any,
|
|
720
|
+
setOtpError: any
|
|
696
721
|
}
|
|
697
722
|
|
|
698
723
|
export interface FavoriteParams {
|
|
@@ -719,7 +744,7 @@ export interface SingleOrderCardParams {
|
|
|
719
744
|
pastOrders: any,
|
|
720
745
|
isMessageView?: any,
|
|
721
746
|
handleClickOrder: (value: any) => {},
|
|
722
|
-
handleRemoveCart: () => {},
|
|
747
|
+
handleRemoveCart: (value: any) => {},
|
|
723
748
|
cartState: any
|
|
724
749
|
}
|
|
725
750
|
|
|
@@ -732,7 +757,7 @@ export interface PreviousBusinessOrderedParams {
|
|
|
732
757
|
isBusinessesSearchList?: any,
|
|
733
758
|
businessLoading?: boolean,
|
|
734
759
|
businesses?: any
|
|
735
|
-
|
|
760
|
+
handleUpdateBusinesses?: (businessId: number, changes: any) => {},
|
|
736
761
|
}
|
|
737
762
|
|
|
738
763
|
export interface ServiceFormParams {
|
|
@@ -748,13 +773,16 @@ export interface ServiceFormParams {
|
|
|
748
773
|
professionalList: any,
|
|
749
774
|
productObject?: any,
|
|
750
775
|
professionalListState?: any,
|
|
751
|
-
isCartProduct?: any
|
|
776
|
+
isCartProduct?: any,
|
|
777
|
+
actionStatus?: any,
|
|
778
|
+
handleCreateGuestUser?: any
|
|
752
779
|
}
|
|
753
780
|
|
|
754
781
|
export interface ProfessionalFilterParams {
|
|
755
782
|
professionals?: any,
|
|
756
783
|
professionalSelected?: any,
|
|
757
|
-
handleChangeProfessionalSelected: any
|
|
784
|
+
handleChangeProfessionalSelected: any,
|
|
785
|
+
handleUpdateProfessionals?: any
|
|
758
786
|
}
|
|
759
787
|
|
|
760
788
|
export interface ProfessionalProfileParams {
|
|
@@ -771,7 +799,8 @@ export interface OrderItAgainParams {
|
|
|
771
799
|
currentCart: any,
|
|
772
800
|
handleUpdateProducts: any,
|
|
773
801
|
navigation: any,
|
|
774
|
-
searchValue?: string
|
|
802
|
+
searchValue?: string,
|
|
803
|
+
businessSingleId?: number | string
|
|
775
804
|
}
|
|
776
805
|
|
|
777
806
|
export interface PreviousProductsOrderedParams {
|