ordering-ui-react-native 0.16.43 → 0.16.46
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 +2 -1
- package/src/pages/BusinessesListing.tsx +7 -6
- package/src/pages/OrderDetails.tsx +1 -1
- package/src/pages/ReviewDriver.tsx +2 -2
- package/src/pages/ReviewOrder.tsx +2 -2
- package/themes/original/src/components/BusinessProductsListing/index.tsx +40 -39
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +2 -2
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/styles.tsx +2 -2
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +1 -1
- package/themes/original/src/components/BusinessesListing/index.tsx +38 -5
- package/themes/original/src/components/NavBar/index.tsx +4 -4
- package/themes/original/src/components/OrderDetails/index.tsx +2 -0
- package/themes/original/src/components/ProductForm/index.tsx +1 -1
- package/themes/original/src/components/ProfessionalProfile/index.tsx +7 -6
- package/themes/original/src/components/ReviewDriver/index.tsx +6 -6
- package/themes/original/src/components/ReviewOrder/index.tsx +98 -78
- package/themes/original/src/components/ReviewOrder/styles.tsx +9 -0
- package/themes/original/src/components/SearchBar/index.tsx +5 -3
- package/themes/original/src/components/ServiceForm/index.tsx +337 -253
- package/themes/original/src/components/UserProfileForm/index.tsx +10 -10
- package/themes/original/src/components/shared/OInput.tsx +3 -2
- package/themes/original/src/types/index.tsx +3 -2
|
@@ -271,16 +271,16 @@ const ProfileUI = (props: ProfileParams) => {
|
|
|
271
271
|
}, [verifyPhoneState])
|
|
272
272
|
|
|
273
273
|
const handleSendPhoneCode = (values: any) => {
|
|
274
|
-
|
|
274
|
+
setWillVerifyOtpState(false)
|
|
275
275
|
setIsModalVisible(false)
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
276
|
+
setFormState({
|
|
277
|
+
...formState,
|
|
278
|
+
changes: {
|
|
279
|
+
...formState?.changes,
|
|
280
|
+
verification_code: values?.code
|
|
281
|
+
}
|
|
282
|
+
})
|
|
283
|
+
}
|
|
284
284
|
|
|
285
285
|
return (
|
|
286
286
|
<>
|
|
@@ -289,7 +289,7 @@ const ProfileUI = (props: ProfileParams) => {
|
|
|
289
289
|
titleAlign={'center'}
|
|
290
290
|
onActionLeft={() => navigation.goBack()}
|
|
291
291
|
showCall={false}
|
|
292
|
-
style={{ paddingHorizontal: 40, paddingVertical: Platform.OS === 'ios' ? 0 : 30
|
|
292
|
+
style={{ paddingHorizontal: 40, paddingVertical: Platform.OS === 'ios' ? 0 : 30 }}
|
|
293
293
|
/>
|
|
294
294
|
<KeyboardAvoidingView behavior={Platform.OS == 'ios' ? 'padding' : 'height'} enabled style={{ flex: 1, flexDirection: 'column', justifyContent: 'center' }}>
|
|
295
295
|
<Container noPadding>
|
|
@@ -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}
|
|
@@ -415,7 +415,7 @@ export interface ProductItemAccordionParams {
|
|
|
415
415
|
isFromCheckout?: any
|
|
416
416
|
}
|
|
417
417
|
export interface ReviewOrderParams {
|
|
418
|
-
order?: { id: number, businessId: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
|
|
418
|
+
order?: { id: number, businessId: number, business_name?: string, delivery_datetime?: string, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
|
|
419
419
|
stars?: any,
|
|
420
420
|
handleChangeInput?: any,
|
|
421
421
|
handleChangeRating?: any,
|
|
@@ -711,7 +711,8 @@ export interface ServiceFormParams {
|
|
|
711
711
|
isSoldOut: boolean,
|
|
712
712
|
maxProductQuantity: any,
|
|
713
713
|
businessSlug?: string,
|
|
714
|
-
onClose: any
|
|
714
|
+
onClose: any,
|
|
715
|
+
professionalList: any
|
|
715
716
|
}
|
|
716
717
|
|
|
717
718
|
export interface ProfessionalFilterParams {
|