ordering-ui-react-native 0.18.38 → 0.18.39
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 +1 -1
- package/themes/original/src/components/AddressForm/index.tsx +7 -4
- package/themes/original/src/components/AddressList/index.tsx +1 -1
- package/themes/original/src/components/BusinessController/index.tsx +3 -3
- package/themes/original/src/components/BusinessListingSearch/index.tsx +330 -276
- package/themes/original/src/components/BusinessProductsList/index.tsx +3 -3
- package/themes/original/src/components/BusinessProductsListing/index.tsx +35 -8
- package/themes/original/src/components/Checkout/index.tsx +6 -5
- package/themes/original/src/components/GoogleMap/index.tsx +11 -2
- package/themes/original/src/components/LoginForm/index.tsx +15 -14
- package/themes/original/src/components/MyOrders/index.tsx +14 -1
- package/themes/original/src/components/NavBar/index.tsx +9 -4
- package/themes/original/src/components/OrdersOption/index.tsx +3 -1
- package/themes/original/src/components/ProductForm/index.tsx +3 -4
- package/themes/original/src/components/ProductOptionSubOption/index.tsx +7 -5
- package/themes/original/src/components/ProductOptionSubOption/styles.tsx +2 -2
- package/themes/original/src/components/SignupForm/index.tsx +14 -14
- package/themes/original/src/components/StripeElementsForm/index.tsx +17 -16
- package/themes/original/src/components/UserFormDetails/index.tsx +34 -5
- package/themes/original/src/components/UserProfile/index.tsx +2 -20
- package/themes/original/src/components/UserProfileForm/index.tsx +2 -1
- package/themes/original/src/components/Wallets/index.tsx +1 -1
- package/themes/original/src/types/index.tsx +2 -2
- package/themes/original/src/utils/index.tsx +11 -0
package/package.json
CHANGED
|
@@ -122,8 +122,8 @@ const AddressFormUI = (props: AddressFormParams) => {
|
|
|
122
122
|
width: 16
|
|
123
123
|
},
|
|
124
124
|
wrapperNavbar: Platform.OS === 'ios'
|
|
125
|
-
? { paddingVertical: 0,
|
|
126
|
-
: { paddingVertical: 20,
|
|
125
|
+
? { paddingVertical: 0, paddingLeft: 40, paddingRight: 20 }
|
|
126
|
+
: { paddingVertical: 20, paddingLeft: 40, paddingRight: 20 }
|
|
127
127
|
});
|
|
128
128
|
|
|
129
129
|
const [, t] = useLanguage();
|
|
@@ -352,6 +352,9 @@ const AddressFormUI = (props: AddressFormParams) => {
|
|
|
352
352
|
map_data: { library: 'google', place_id: data.place_id },
|
|
353
353
|
zip_code: data?.zip_code || null,
|
|
354
354
|
};
|
|
355
|
+
if (googleInput?.current) {
|
|
356
|
+
googleInput?.current?.setAddressText(addressSelected.address);
|
|
357
|
+
}
|
|
355
358
|
updateChanges(addressSelected);
|
|
356
359
|
};
|
|
357
360
|
|
|
@@ -526,8 +529,8 @@ const AddressFormUI = (props: AddressFormParams) => {
|
|
|
526
529
|
onActionLeft={goToBack}
|
|
527
530
|
showCall={false}
|
|
528
531
|
btnStyle={{ paddingLeft: 0 }}
|
|
529
|
-
style={{ marginTop: Platform.OS === 'ios' ? 0 :
|
|
530
|
-
titleWrapStyle={{ paddingHorizontal: 0 }}
|
|
532
|
+
style={{ marginTop: Platform.OS === 'ios' ? 0 : 10 }}
|
|
533
|
+
titleWrapStyle={{ paddingHorizontal: 0, width: '100%' }}
|
|
531
534
|
titleStyle={{ marginRight: 0, marginLeft: 0 }}
|
|
532
535
|
/>
|
|
533
536
|
</View>
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
ToastType
|
|
12
12
|
} from 'ordering-components/native';
|
|
13
13
|
import { OIcon, OText } from '../shared';
|
|
14
|
-
import { Dimensions, StyleSheet,
|
|
14
|
+
import { Dimensions, StyleSheet, View } from 'react-native';
|
|
15
15
|
import { InView } from 'react-native-intersection-observer'
|
|
16
16
|
import { BusinessControllerParams } from '../../types';
|
|
17
|
-
import { convertHoursToMinutes, lightenDarkenColor, shape } from '../../utils';
|
|
17
|
+
import { convertHoursToMinutes, lightenDarkenColor, shape, vibrateApp } from '../../utils';
|
|
18
18
|
|
|
19
19
|
import {
|
|
20
20
|
BusinessHero,
|
|
@@ -152,7 +152,7 @@ export const BusinessControllerUI = (props: BusinessControllerParams) => {
|
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
const handleBusinessClick = (selectedBusiness: any) => {
|
|
155
|
-
|
|
155
|
+
vibrateApp()
|
|
156
156
|
if (business?.open) handleClick && handleClick(selectedBusiness)
|
|
157
157
|
else {
|
|
158
158
|
if (configState?.configs?.preorder_status_enabled?.value === '1') {
|