ordering-ui-react-native 0.16.14 → 0.16.15-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 -4
- package/src/DeliveryApp.tsx +43 -1
- package/src/components/ActiveOrders/index.tsx +61 -63
- package/src/components/ActiveOrders/styles.tsx +8 -14
- package/src/components/AddressForm/index.tsx +18 -2
- package/src/components/BusinessBasicInformation/index.tsx +11 -19
- package/src/components/BusinessController/index.tsx +10 -8
- package/src/components/BusinessInformation/index.tsx +22 -0
- package/src/components/BusinessProductsList/index.tsx +10 -10
- package/src/components/BusinessTypeFilter/index.tsx +1 -2
- package/src/components/BusinessesListing/index.tsx +1 -1
- package/src/components/Checkout/index.tsx +2 -1
- package/src/components/LanguageSelector/index.tsx +21 -16
- package/src/components/LoginForm/index.tsx +118 -30
- package/src/components/LoginForm/styles.tsx +6 -0
- package/src/components/Messages/index.tsx +2 -2
- package/src/components/NotificationSetting/index.tsx +85 -0
- package/src/components/OrderDetails/index.tsx +7 -21
- package/src/components/OrdersOption/index.tsx +54 -56
- package/src/components/PaymentOptions/index.tsx +335 -365
- 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 +143 -61
- package/src/components/SingleProductReview/index.tsx +8 -5
- package/src/components/StripeElementsForm/index.tsx +25 -16
- package/src/components/VerifyPhone/styles.tsx +1 -2
- package/src/components/shared/OBottomPopup.tsx +6 -2
- package/src/index.tsx +2 -0
- package/src/navigators/CheckoutNavigator.tsx +6 -0
- package/src/navigators/HomeNavigator.tsx +6 -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/theme.json +0 -1
- package/src/types/@fatnlazycat/react-native-recaptcha-v3/index.d.ts +1 -0
- package/src/types/index.tsx +13 -9
- package/src/utils/index.tsx +0 -1
- package/themes/business/index.tsx +4 -0
- package/themes/business/src/components/BusinessController/index.tsx +2 -2
- package/themes/business/src/components/Chat/index.tsx +42 -34
- package/themes/business/src/components/DriverMap/index.tsx +7 -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 +111 -74
- package/themes/business/src/components/MapView/index.tsx +1 -1
- package/themes/business/src/components/MessagesOption/index.tsx +11 -1
- package/themes/business/src/components/OrderDetails/Business.tsx +1 -1
- package/themes/business/src/components/OrderDetails/Delivery.tsx +3 -3
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +19 -18
- package/themes/business/src/components/OrdersListManager/index.tsx +10 -3
- package/themes/business/src/components/OrdersOption/index.tsx +65 -21
- package/themes/business/src/components/OrdersOption/styles.tsx +5 -1
- package/themes/business/src/components/OrdersOptionBusiness/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionCity/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionDate/index.tsx +19 -6
- package/themes/business/src/components/OrdersOptionDelivery/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionDriver/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionPaymethod/index.tsx +15 -1
- package/themes/business/src/components/OrdersOptionStatus/index.tsx +10 -1
- package/themes/business/src/components/PreviousMessages/index.tsx +17 -18
- package/themes/business/src/components/PreviousOrders/index.tsx +21 -23
- package/themes/business/src/components/ProductItemAccordion/index.tsx +5 -4
- package/themes/business/src/components/ReviewCustomer/index.tsx +1 -1
- 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/ODropDown.tsx +42 -8
- package/themes/business/src/components/shared/ODropDownCalendar.tsx +36 -7
- package/themes/business/src/components/shared/OModal.tsx +40 -37
- package/themes/business/src/types/index.tsx +14 -9
- package/themes/business/src/utils/index.tsx +10 -0
- package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
- package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
- package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
- package/themes/kiosk/src/components/BusinessMenu/index.tsx +2 -1
- package/themes/kiosk/src/components/CartItem/index.tsx +4 -3
- package/themes/kiosk/src/components/CategoriesMenu/index.tsx +1 -0
- package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
- 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/LoginForm/index.tsx +121 -10
- package/themes/kiosk/src/components/LoginForm/styles.tsx +5 -0
- 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/shared/OButton.tsx +5 -18
- package/themes/kiosk/src/types/index.d.ts +2 -0
- package/themes/original/index.tsx +18 -0
- package/themes/original/src/components/AddressForm/index.tsx +136 -133
- package/themes/original/src/components/AddressList/index.tsx +1 -1
- package/themes/original/src/components/AppleLogin/index.tsx +4 -4
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +302 -160
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +6 -2
- package/themes/original/src/components/BusinessController/index.tsx +173 -108
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +12 -9
- package/themes/original/src/components/BusinessItemAccordion/styles.tsx +3 -1
- package/themes/original/src/components/BusinessListingSearch/BusinessControllerSkeletons/index.tsx +57 -0
- package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/index.tsx +59 -0
- package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/styles.tsx +13 -0
- package/themes/original/src/components/BusinessListingSearch/index.tsx +106 -126
- package/themes/original/src/components/BusinessListingSearch/styles.tsx +18 -13
- package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/index.tsx +87 -0
- package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/styles.tsx +12 -0
- package/themes/original/src/components/BusinessProductsList/index.tsx +53 -53
- package/themes/original/src/components/BusinessProductsList/styles.tsx +0 -3
- package/themes/original/src/components/BusinessProductsListing/index.tsx +290 -181
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +18 -0
- package/themes/original/src/components/BusinessReviews/index.tsx +6 -1
- package/themes/original/src/components/BusinessTypeFilter/index.tsx +109 -40
- package/themes/original/src/components/BusinessTypeFilter/styles.tsx +2 -0
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +561 -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 +676 -0
- package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +137 -0
- package/themes/original/src/components/BusinessesListing/index.tsx +100 -495
- package/themes/original/src/components/Cart/index.tsx +81 -36
- package/themes/original/src/components/Cart/styles.tsx +4 -0
- package/themes/original/src/components/CartContent/index.tsx +22 -16
- package/themes/original/src/components/Checkout/index.tsx +106 -66
- package/themes/original/src/components/Checkout/styles.tsx +0 -1
- package/themes/original/src/components/DriverTips/index.tsx +4 -4
- package/themes/original/src/components/DriverTips/styles.tsx +2 -1
- package/themes/original/src/components/Favorite/index.tsx +1 -0
- package/themes/original/src/components/Favorite/styles.tsx +1 -0
- package/themes/original/src/components/FavoriteList/index.tsx +143 -94
- package/themes/original/src/components/GPSButton/index.tsx +20 -19
- package/themes/original/src/components/GoogleMap/index.tsx +20 -12
- package/themes/original/src/components/HelpAccountAndPayment/index.tsx +8 -3
- package/themes/original/src/components/HelpGuide/index.tsx +8 -3
- package/themes/original/src/components/HelpOrder/index.tsx +8 -3
- package/themes/original/src/components/LanguageSelector/index.tsx +19 -14
- package/themes/original/src/components/LoginForm/Otp/index.tsx +3 -2
- package/themes/original/src/components/LoginForm/index.tsx +79 -42
- package/themes/original/src/components/Messages/index.tsx +17 -17
- 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 +304 -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 +262 -0
- package/themes/original/src/components/MultiOrdersDetails/styles.tsx +50 -0
- package/themes/original/src/components/MyOrders/index.tsx +177 -27
- package/themes/original/src/components/MyOrders/styles.tsx +8 -1
- package/themes/original/src/components/NavBar/index.tsx +11 -5
- package/themes/original/src/components/NetworkError/index.tsx +5 -3
- package/themes/original/src/components/NotFoundSource/index.tsx +2 -1
- package/themes/original/src/components/Notifications/index.tsx +148 -0
- package/themes/original/src/components/Notifications/styles.tsx +17 -0
- package/themes/original/src/components/OrderDetails/OrderHistory.tsx +167 -0
- package/themes/original/src/components/OrderDetails/index.tsx +187 -49
- package/themes/original/src/components/OrderDetails/styles.tsx +15 -2
- package/themes/original/src/components/OrderItAgain/index.tsx +75 -0
- package/themes/original/src/components/OrderItAgain/styles.tsx +10 -0
- package/themes/original/src/components/OrderProgress/index.tsx +8 -2
- package/themes/original/src/components/OrderSummary/index.tsx +1 -34
- package/themes/original/src/components/OrderTypeSelector/index.tsx +84 -36
- package/themes/original/src/components/OrderTypeSelector/styles.tsx +19 -1
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +144 -0
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/styles.tsx +6 -0
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +56 -0
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/styles.tsx +6 -0
- package/themes/original/src/components/OrdersOption/index.tsx +126 -37
- package/themes/original/src/components/OrdersOption/styles.tsx +4 -1
- package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
- package/themes/original/src/components/PaymentOptions/index.tsx +57 -37
- package/themes/original/src/components/PhoneInputNumber/index.tsx +4 -10
- package/themes/original/src/components/PlaceSpot/index.tsx +243 -47
- package/themes/original/src/components/PlaceSpot/styles.tsx +0 -2
- package/themes/original/src/components/ProductForm/index.tsx +712 -655
- package/themes/original/src/components/ProductForm/styles.tsx +9 -7
- package/themes/original/src/components/ProductItemAccordion/index.tsx +170 -128
- package/themes/original/src/components/ProductOption/index.tsx +1 -1
- package/themes/original/src/components/ProfessionalFilter/index.tsx +129 -0
- package/themes/original/src/components/ProfessionalFilter/styles.tsx +0 -0
- package/themes/original/src/components/ProfessionalProfile/index.tsx +309 -0
- package/themes/original/src/components/ProfessionalProfile/styles.tsx +46 -0
- package/themes/original/src/components/ReviewDriver/index.tsx +6 -6
- package/themes/original/src/components/ReviewOrder/index.tsx +18 -3
- package/themes/original/src/components/ReviewProducts/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 +10 -5
- package/themes/original/src/components/ServiceForm/index.tsx +631 -0
- package/themes/original/src/components/ServiceForm/styles.tsx +50 -0
- package/themes/original/src/components/SignupForm/index.tsx +301 -158
- package/themes/original/src/components/SingleOrderCard/index.tsx +213 -177
- package/themes/original/src/components/SingleProductCard/index.tsx +198 -110
- package/themes/original/src/components/SingleProductCard/styles.tsx +2 -2
- package/themes/original/src/components/SingleProductReview/index.tsx +30 -3
- package/themes/original/src/components/SingleProductReview/styles.tsx +12 -0
- package/themes/original/src/components/StripeElementsForm/index.tsx +25 -9
- package/themes/original/src/components/StripeElementsForm/naked.tsx +2 -2
- package/themes/original/src/components/UpsellingProducts/index.tsx +14 -4
- package/themes/original/src/components/UserDetails/index.tsx +32 -18
- package/themes/original/src/components/UserFormDetails/index.tsx +74 -81
- package/themes/original/src/components/UserProfile/index.tsx +57 -29
- package/themes/original/src/components/UserProfile/styles.ts +17 -0
- package/themes/original/src/components/UserProfileForm/index.tsx +15 -10
- package/themes/original/src/components/WalletTransactions/index.tsx +76 -0
- package/themes/original/src/components/WalletTransactions/styles.tsx +13 -0
- package/themes/original/src/components/Wallets/index.tsx +174 -162
- package/themes/original/src/components/Wallets/styles.tsx +10 -8
- package/themes/original/src/components/shared/OBottomPopup.tsx +47 -14
- package/themes/original/src/components/shared/OButton.tsx +10 -3
- package/themes/original/src/components/shared/OInput.tsx +3 -2
- package/themes/original/src/layouts/FloatingBottomContainer.tsx +5 -1
- package/themes/original/src/types/index.tsx +164 -46
- package/themes/original/src/utils/index.tsx +77 -0
- package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
|
@@ -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}
|
|
@@ -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,10 +18,10 @@ export interface LoginParams {
|
|
|
18
18
|
handleCheckPhoneCode?: any;
|
|
19
19
|
notificationState?: any;
|
|
20
20
|
handleReCaptcha?: any;
|
|
21
|
-
|
|
21
|
+
enableReCaptcha?: any;
|
|
22
22
|
otpType?: string,
|
|
23
|
-
setOtpType: (type
|
|
24
|
-
generateOtpCode: (values
|
|
23
|
+
setOtpType: (type: string) => void,
|
|
24
|
+
generateOtpCode: (values?: any) => void,
|
|
25
25
|
useLoginOtpEmail?: boolean,
|
|
26
26
|
useLoginOtpCellphone?: boolean,
|
|
27
27
|
useLoginOtp?: boolean
|
|
@@ -47,6 +47,8 @@ export interface ProfileParams {
|
|
|
47
47
|
isVerifiedPhone?: any;
|
|
48
48
|
handleRemoveAccount?: any;
|
|
49
49
|
removeAccountState?: any;
|
|
50
|
+
handleChangePromotions?: any;
|
|
51
|
+
notificationsGroup?: any;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
export interface AddressListParams {
|
|
@@ -80,6 +82,7 @@ export interface AddressFormParams {
|
|
|
80
82
|
saveAddress?: any,
|
|
81
83
|
userCustomerSetup?: boolean,
|
|
82
84
|
isRequiredField?: (field: string) => {},
|
|
85
|
+
showField?: (field: string) => {},
|
|
83
86
|
isGuestUser?: boolean,
|
|
84
87
|
useValidationFileds?: boolean,
|
|
85
88
|
isSelectedAfterAdd?: boolean,
|
|
@@ -110,9 +113,20 @@ export interface SignupParams {
|
|
|
110
113
|
handleSendVerifyCode?: any;
|
|
111
114
|
handleCheckPhoneCode?: any;
|
|
112
115
|
notificationState?: any;
|
|
116
|
+
signUpTab?: string;
|
|
117
|
+
useSignUpFullDetails?: boolean;
|
|
118
|
+
useSignUpOtpEmail?: boolean;
|
|
119
|
+
useSignUpOtpCellphone?: boolean;
|
|
120
|
+
willVerifyOtpState?: boolean;
|
|
121
|
+
numOtpInputs?: number;
|
|
113
122
|
handleChangePromotions: () => void;
|
|
123
|
+
handleChangeInput?: (in1: any, in2: any) => void;
|
|
114
124
|
enableReCaptcha?: boolean;
|
|
115
|
-
|
|
125
|
+
generateOtpCode?: (in1?: any) => void;
|
|
126
|
+
handleReCaptcha?: (token?: any) => void;
|
|
127
|
+
setSignUpTab?: (in1: string) => void;
|
|
128
|
+
setWillVerifyOtpState?: (in1: boolean) => void;
|
|
129
|
+
setOtpState?: (in1: string) => void;
|
|
116
130
|
}
|
|
117
131
|
|
|
118
132
|
export interface PhoneInputParams {
|
|
@@ -155,6 +169,10 @@ export interface BusinessesListingParams {
|
|
|
155
169
|
businessId?: any;
|
|
156
170
|
isGuestUser?: any;
|
|
157
171
|
handleUpdateBusinessList?: any;
|
|
172
|
+
priceLevelSelected?: any;
|
|
173
|
+
handleChangePriceLevel?: any;
|
|
174
|
+
businessTypeSelected?: any;
|
|
175
|
+
logosLayout?: boolean;
|
|
158
176
|
}
|
|
159
177
|
export interface HighestRatedBusinessesParams {
|
|
160
178
|
businessesList: { businesses: Array<any>, loading: boolean, error: null | string };
|
|
@@ -173,7 +191,8 @@ export interface BusinessTypeFilterParams {
|
|
|
173
191
|
defaultBusinessType?: string | null;
|
|
174
192
|
images?: any
|
|
175
193
|
typesState?: any
|
|
176
|
-
setBusinessTypes?: any
|
|
194
|
+
setBusinessTypes?: any,
|
|
195
|
+
isAppoint?: boolean | undefined
|
|
177
196
|
}
|
|
178
197
|
export interface BusinessControllerParams {
|
|
179
198
|
key?: string | number;
|
|
@@ -198,6 +217,8 @@ export interface BusinessControllerParams {
|
|
|
198
217
|
handleFavoriteBusiness?: any,
|
|
199
218
|
setFavoriteIds?: any;
|
|
200
219
|
handleUpdateBusinessList?: any;
|
|
220
|
+
enableIntersection?: boolean;
|
|
221
|
+
handleCustomUpdate?: (businessId: number, changes: any) => {};
|
|
201
222
|
}
|
|
202
223
|
export interface BusinessProductsListingParams {
|
|
203
224
|
navigation?: any;
|
|
@@ -221,6 +242,8 @@ export interface BusinessProductsListingParams {
|
|
|
221
242
|
setProductLogin?: () => {};
|
|
222
243
|
updateProductModal?: (value: any) => {};
|
|
223
244
|
handleUpdateProducts?: any;
|
|
245
|
+
professionalSelected?: any;
|
|
246
|
+
handleChangeProfessionalSelected?: any;
|
|
224
247
|
}
|
|
225
248
|
export interface BusinessBasicInformationParams {
|
|
226
249
|
navigation?: any;
|
|
@@ -265,21 +288,28 @@ export interface BusinessProductsListParams {
|
|
|
265
288
|
setCategoriesLayout?: any,
|
|
266
289
|
currentCart?: any,
|
|
267
290
|
setSubcategoriesSelected?: any,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
291
|
+
subcategoriesSelected?: any,
|
|
292
|
+
onClickCategory?: any,
|
|
293
|
+
lazyLoadProductsRecommended?: boolean,
|
|
271
294
|
isFiltMode?: boolean,
|
|
272
|
-
handleUpdateProducts?: any
|
|
295
|
+
handleUpdateProducts?: any,
|
|
296
|
+
navigation?: any;
|
|
297
|
+
previouslyProducts?: any;
|
|
273
298
|
}
|
|
274
299
|
export interface SingleProductCardParams {
|
|
275
|
-
businessId: any
|
|
300
|
+
businessId: any;
|
|
276
301
|
product: any;
|
|
277
302
|
isSoldOut: boolean;
|
|
278
303
|
onProductClick: any;
|
|
279
304
|
productAddedToCartLength: number;
|
|
280
|
-
style?: ViewStyle
|
|
281
|
-
|
|
282
|
-
|
|
305
|
+
style?: ViewStyle;
|
|
306
|
+
categoryState?: any;
|
|
307
|
+
handleFavoriteProduct?: any;
|
|
308
|
+
handleUpdateProducts?: any;
|
|
309
|
+
enableIntersection?: boolean;
|
|
310
|
+
navigation?: any;
|
|
311
|
+
isPreviously?: any;
|
|
312
|
+
isProductId?: any;
|
|
283
313
|
}
|
|
284
314
|
export interface BusinessInformationParams {
|
|
285
315
|
navigation?: any,
|
|
@@ -313,6 +343,7 @@ export interface OrdersOptionParams {
|
|
|
313
343
|
orderList?: any,
|
|
314
344
|
franchiseId?: any,
|
|
315
345
|
activeOrders?: boolean,
|
|
346
|
+
pastOrders?: boolean,
|
|
316
347
|
pagination?: any,
|
|
317
348
|
titleContent?: string,
|
|
318
349
|
customArray?: Array<any>,
|
|
@@ -331,8 +362,19 @@ export interface OrdersOptionParams {
|
|
|
331
362
|
setOpenMessges?: any,
|
|
332
363
|
loadMoreStatus?: boolean,
|
|
333
364
|
refreshOrders?: boolean,
|
|
334
|
-
setRefreshOrders?: (value
|
|
335
|
-
handleUpdateOrderList?: (orderId: number, changes: any) => {}
|
|
365
|
+
setRefreshOrders?: (value: boolean) => void,
|
|
366
|
+
handleUpdateOrderList?: (orderId: number, changes: any) => {},
|
|
367
|
+
handleUpdateProducts?: (productId: number, changes: any) => {},
|
|
368
|
+
handleUpdateBusinesses?: (businessId: number, changes: any) => {},
|
|
369
|
+
isBusiness?: boolean,
|
|
370
|
+
isProducts?: boolean,
|
|
371
|
+
businessOrderIds?: any,
|
|
372
|
+
products?: any,
|
|
373
|
+
businessesSearchList?: any,
|
|
374
|
+
hideOrders?: boolean,
|
|
375
|
+
BusinessControllerSkeletons?: any,
|
|
376
|
+
businessPaginationProps?: any,
|
|
377
|
+
businesses?: any
|
|
336
378
|
}
|
|
337
379
|
export interface ActiveOrdersParams {
|
|
338
380
|
orders?: any,
|
|
@@ -389,25 +431,26 @@ export interface ProductItemAccordionParams {
|
|
|
389
431
|
isFromCheckout?: any
|
|
390
432
|
}
|
|
391
433
|
export interface ReviewOrderParams {
|
|
392
|
-
order?: { id: number,
|
|
393
|
-
stars?: any
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
434
|
+
order?: { id: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any };
|
|
435
|
+
stars?: any;
|
|
436
|
+
defaultStar?: number;
|
|
437
|
+
handleChangeInput?: any;
|
|
438
|
+
handleChangeRating?: any;
|
|
439
|
+
handleSendReview?: any;
|
|
440
|
+
formState?: any;
|
|
441
|
+
navigation?: any;
|
|
442
|
+
setIsReviewed?: (isReviewed: boolean) => void;
|
|
443
|
+
handleReviewState?: any;
|
|
444
|
+
setStars?: any;
|
|
445
|
+
onNavigationRedirect?: any;
|
|
403
446
|
}
|
|
404
447
|
export interface ReviewProductParams {
|
|
405
448
|
navigation?: any,
|
|
406
449
|
onNavigationRedirect?: any,
|
|
407
|
-
order?: { orderId: number,
|
|
450
|
+
order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
|
|
408
451
|
formState?: any,
|
|
409
452
|
handleChangeFormState?: any,
|
|
410
|
-
handleSendProductReview?: any
|
|
453
|
+
handleSendProductReview?: any;
|
|
411
454
|
}
|
|
412
455
|
export interface SingleProductReviewParams {
|
|
413
456
|
product: any,
|
|
@@ -417,12 +460,12 @@ export interface SingleProductReviewParams {
|
|
|
417
460
|
export interface ReviewDriverParams {
|
|
418
461
|
navigation?: any,
|
|
419
462
|
onNavigationRedirect?: any,
|
|
420
|
-
order?: { orderId: number,
|
|
463
|
+
order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
|
|
421
464
|
formState?: any,
|
|
422
465
|
setIsDriverReviewed?: (isReviewed: boolean) => {},
|
|
423
466
|
dirverReviews?: any,
|
|
424
467
|
setDriverReviews?: any,
|
|
425
|
-
handleSendDriverReview?: any
|
|
468
|
+
handleSendDriverReview?: any;
|
|
426
469
|
}
|
|
427
470
|
export interface MessagesParams {
|
|
428
471
|
type?: string,
|
|
@@ -520,7 +563,9 @@ export interface OrderTypeSelectParams {
|
|
|
520
563
|
defaultValue?: number;
|
|
521
564
|
configTypes?: Array<any>;
|
|
522
565
|
orderTypes: Array<any>;
|
|
523
|
-
setOrderTypeValue?: (value
|
|
566
|
+
setOrderTypeValue?: (value: number) => any,
|
|
567
|
+
isChewLayout?: boolean;
|
|
568
|
+
chewOrderTypes?: any;
|
|
524
569
|
}
|
|
525
570
|
export interface UpsellingProductsParams {
|
|
526
571
|
isCustomMode?: boolean;
|
|
@@ -596,6 +641,9 @@ export interface BusinessSearchParams {
|
|
|
596
641
|
setFilters: (filters: any) => void,
|
|
597
642
|
lazySearch?: boolean,
|
|
598
643
|
brandList?: any;
|
|
644
|
+
onNavigationRedirect?: any,
|
|
645
|
+
handleUpdateProducts: any,
|
|
646
|
+
handleUpdateBusinessList?: any;
|
|
599
647
|
}
|
|
600
648
|
|
|
601
649
|
export interface NoNetworkParams {
|
|
@@ -603,37 +651,46 @@ export interface NoNetworkParams {
|
|
|
603
651
|
}
|
|
604
652
|
|
|
605
653
|
export interface PlaceSpotParams {
|
|
606
|
-
|
|
654
|
+
isCheckout?: any,
|
|
655
|
+
isInputMode?: any,
|
|
607
656
|
cart?: any,
|
|
657
|
+
spotNumberDefault?: any,
|
|
658
|
+
vehicleDefault?: any,
|
|
659
|
+
spotNumber?: any,
|
|
660
|
+
setSpotNumber?: any,
|
|
661
|
+
orderTypes?: any,
|
|
608
662
|
placesState?: any,
|
|
609
663
|
handleChangePlace?: any,
|
|
610
|
-
|
|
611
|
-
|
|
664
|
+
spotState?: any,
|
|
665
|
+
vehicle?: any,
|
|
666
|
+
setVehicle?: any,
|
|
667
|
+
handleChangeSpot?: any
|
|
612
668
|
}
|
|
613
669
|
|
|
614
670
|
export interface PromotionParams {
|
|
615
671
|
navigation: any,
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
672
|
+
offersState: any,
|
|
673
|
+
handleSearchValue: any,
|
|
674
|
+
searchValue: string,
|
|
675
|
+
offerSelected: any,
|
|
676
|
+
setOfferSelected: any,
|
|
621
677
|
loadOffers: any
|
|
622
678
|
}
|
|
623
679
|
export interface SessionsParams {
|
|
624
680
|
navigation: any,
|
|
625
681
|
sessionsList: any,
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
682
|
+
actionState: any,
|
|
683
|
+
handleDeleteSession: any,
|
|
684
|
+
handleDeleteAllSessions: any
|
|
629
685
|
}
|
|
630
686
|
|
|
631
687
|
export interface otpParams {
|
|
632
688
|
willVerifyOtpState: boolean,
|
|
633
|
-
setWillVerifyOtpState: (val
|
|
689
|
+
setWillVerifyOtpState: (val: boolean) => void,
|
|
634
690
|
onSubmit: () => void,
|
|
635
|
-
handleLoginOtp: (code
|
|
636
|
-
setAlertState: any
|
|
691
|
+
handleLoginOtp: (code: string) => void,
|
|
692
|
+
setAlertState: any;
|
|
693
|
+
pinCount: number;
|
|
637
694
|
}
|
|
638
695
|
|
|
639
696
|
export interface FavoriteParams {
|
|
@@ -659,5 +716,66 @@ export interface SingleOrderCardParams {
|
|
|
659
716
|
onNavigationRedirect?: (route: string, params?: any) => {},
|
|
660
717
|
pastOrders: any,
|
|
661
718
|
isMessageView?: any,
|
|
662
|
-
handleClickOrder: (value: any) => {}
|
|
719
|
+
handleClickOrder: (value: any) => {},
|
|
720
|
+
handleRemoveCart: () => {},
|
|
721
|
+
cartState: any
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export interface PreviousBusinessOrderedParams {
|
|
725
|
+
navigation?: any,
|
|
726
|
+
businessesList?: any,
|
|
727
|
+
setBusinessLoading?: any,
|
|
728
|
+
businessId?: number,
|
|
729
|
+
onNavigationRedirect?: any,
|
|
730
|
+
isBusinessesSearchList?: any,
|
|
731
|
+
businessLoading?: boolean,
|
|
732
|
+
businesses?: any
|
|
733
|
+
handleUpdateBusinesses?: (businessId: number, changes: any) => {},
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export interface ServiceFormParams {
|
|
737
|
+
navigation?: any,
|
|
738
|
+
professionalSelected: any,
|
|
739
|
+
product: any,
|
|
740
|
+
handleSave: (value?: any) => {}
|
|
741
|
+
productCart?: any
|
|
742
|
+
isSoldOut: boolean,
|
|
743
|
+
maxProductQuantity: any,
|
|
744
|
+
businessSlug?: string,
|
|
745
|
+
onClose: any,
|
|
746
|
+
professionalList: any,
|
|
747
|
+
productObject?: any,
|
|
748
|
+
professionalListState?: any,
|
|
749
|
+
isCartProduct?: any
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
export interface ProfessionalFilterParams {
|
|
753
|
+
professionals?: any,
|
|
754
|
+
professionalSelected?: any,
|
|
755
|
+
handleChangeProfessionalSelected: any
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
export interface ProfessionalProfileParams {
|
|
759
|
+
professional: any,
|
|
760
|
+
handleChangeProfessionalSelected: any,
|
|
761
|
+
onClose: any
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
export interface OrderItAgainParams {
|
|
765
|
+
onProductClick: any,
|
|
766
|
+
productList: any,
|
|
767
|
+
businessId: any,
|
|
768
|
+
categoryState: any,
|
|
769
|
+
currentCart: any,
|
|
770
|
+
handleUpdateProducts: any,
|
|
771
|
+
navigation: any,
|
|
772
|
+
searchValue?: string
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
export interface PreviousProductsOrderedParams {
|
|
776
|
+
products?: any,
|
|
777
|
+
isProductId?: boolean
|
|
778
|
+
onProductClick?: any,
|
|
779
|
+
isBusinessesSearchList?: boolean
|
|
780
|
+
handleUpdateProducts?: any
|
|
663
781
|
}
|
|
@@ -40,6 +40,72 @@ export const getTraduction = (key: string) => {
|
|
|
40
40
|
return keyList[key] ? t(key, keyList[key]) : t(key)
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Change local moment variables
|
|
45
|
+
*/
|
|
46
|
+
export const setLocalMoment = (moment : any, t : any) => {
|
|
47
|
+
moment.locale('custom', {
|
|
48
|
+
months: [
|
|
49
|
+
t('MONTH1','January'),
|
|
50
|
+
t('MONTH2','February'),
|
|
51
|
+
t('MONTH3','March'),
|
|
52
|
+
t('MONTH4','April'),
|
|
53
|
+
t('MONTH5','May'),
|
|
54
|
+
t('MONTH6','June'),
|
|
55
|
+
t('MONTH7','July'),
|
|
56
|
+
t('MONTH8','August'),
|
|
57
|
+
t('MONTH9','September'),
|
|
58
|
+
t('MONTH10','October'),
|
|
59
|
+
t('MONTH11','November'),
|
|
60
|
+
t('MONTH12','December')
|
|
61
|
+
],
|
|
62
|
+
monthsShort: [
|
|
63
|
+
t('MONTHSHORT1','Jan'),
|
|
64
|
+
t('MONTHSHORT2','Feb'),
|
|
65
|
+
t('MONTHSHORT3','Mar'),
|
|
66
|
+
t('MONTHSHORT4','Apr'),
|
|
67
|
+
t('MONTHSHORT5','May'),
|
|
68
|
+
t('MONTHSHORT6','Jun'),
|
|
69
|
+
t('MONTHSHORT7','Jul'),
|
|
70
|
+
t('MONTHSHORT8','Aug'),
|
|
71
|
+
t('MONTHSHORT9','Sep'),
|
|
72
|
+
t('MONTHSHORT10','Oct'),
|
|
73
|
+
t('MONTHSHORT11','Nov'),
|
|
74
|
+
t('MONTHSHORT12','Dec')
|
|
75
|
+
],
|
|
76
|
+
weekdays: [
|
|
77
|
+
t('DAY7','Sunday'),
|
|
78
|
+
t('DAY1','Monday'),
|
|
79
|
+
t('DAY2','Tuesday'),
|
|
80
|
+
t('DAY3','Wednesday'),
|
|
81
|
+
t('DAY4','Thursday'),
|
|
82
|
+
t('DAY5','Friday'),
|
|
83
|
+
t('DAY6','Saturday')
|
|
84
|
+
],
|
|
85
|
+
weekdaysShort: [
|
|
86
|
+
t('DAYSHORT7','Sun'),
|
|
87
|
+
t('DAYSHORT1','Mon'),
|
|
88
|
+
t('DAYSHORT2','Tue'),
|
|
89
|
+
t('DAYSHORT3','Wed'),
|
|
90
|
+
t('DAYSHORT4','Thu'),
|
|
91
|
+
t('DAYSHORT5','Fri'),
|
|
92
|
+
t('DAYSHORT6','Sat')
|
|
93
|
+
],
|
|
94
|
+
weekdaysMin: [
|
|
95
|
+
t('DAYMIN7','Su'),
|
|
96
|
+
t('DAYMIN1','Mo'),
|
|
97
|
+
t('DAYMIN2','Tu'),
|
|
98
|
+
t('DAYMIN3','We'),
|
|
99
|
+
t('DAYMIN4','Th'),
|
|
100
|
+
t('DAYMIN5','Fr'),
|
|
101
|
+
t('DAYMIN6','Sa')
|
|
102
|
+
],
|
|
103
|
+
meridiem : function (hours : any) {
|
|
104
|
+
return hours < 12 ? t('AM', 'AM') : t('PM','PM');
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
}
|
|
108
|
+
|
|
43
109
|
/**
|
|
44
110
|
* Function to convert delivery time in minutes
|
|
45
111
|
* @param {string} time business delivery time
|
|
@@ -229,3 +295,14 @@ export const formatSeconds = (seconds : number) => {
|
|
|
229
295
|
ret += '' + secs
|
|
230
296
|
return ret
|
|
231
297
|
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* List of price to filter businesses
|
|
301
|
+
*/
|
|
302
|
+
export const priceList = [
|
|
303
|
+
{ level: '1', content: '$' },
|
|
304
|
+
{ level: '2', content: '$$' },
|
|
305
|
+
{ level: '3', content: '$$$' },
|
|
306
|
+
{ level: '4', content: '$$$$' },
|
|
307
|
+
{ level: '5', content: '$$$$$' }
|
|
308
|
+
]
|
|
@@ -144,7 +144,7 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
|
|
|
144
144
|
{isFarAway && (
|
|
145
145
|
<FarAwayMessage style={styles.farAwayMsg}>
|
|
146
146
|
<Ionicons name='md-warning-outline' style={styles.iconStyle} />
|
|
147
|
-
<OText size={12} numberOfLines={1} ellipsizeMode={'tail'} color={theme.colors.textNormal}>{t('YOU_ARE_FAR_FROM_ADDRESS', '
|
|
147
|
+
<OText size={12} numberOfLines={1} ellipsizeMode={'tail'} color={theme.colors.textNormal}>{t('YOU_ARE_FAR_FROM_ADDRESS', 'Your are far from this address')}</OText>
|
|
148
148
|
</FarAwayMessage>
|
|
149
149
|
)}
|
|
150
150
|
<View style={styles.wrapperOrderOptions}>
|