ordering-ui-react-native 0.16.87 → 0.16.89
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
CHANGED
|
@@ -40,6 +40,9 @@ const AddressListUI = (props: AddressListParams) => {
|
|
|
40
40
|
|
|
41
41
|
const [isProfile, setIsProfile] = useState(isFromProfile || route?.params?.isFromProfile);
|
|
42
42
|
|
|
43
|
+
const goToBack = () => navigation?.canGoBack() && navigation.goBack()
|
|
44
|
+
const onNavigationRedirect = (route: string, params?: any) => navigation.navigate(route, params)
|
|
45
|
+
|
|
43
46
|
const onNavigatorRedirect = () => {
|
|
44
47
|
if (route && (isFromBusinesses || isGoBack)) {
|
|
45
48
|
isGoBack ? goToBack() : onNavigationRedirect('BottomTab')
|
|
@@ -101,6 +104,7 @@ const AddressListUI = (props: AddressListParams) => {
|
|
|
101
104
|
const handleSetAddress = (address: any) => {
|
|
102
105
|
if (address.id === orderState?.options?.address_id) return
|
|
103
106
|
handleSetDefault(address)
|
|
107
|
+
onNavigatorRedirect()
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
const handleSaveAddress = (address: any) => {
|
|
@@ -129,15 +133,6 @@ const AddressListUI = (props: AddressListParams) => {
|
|
|
129
133
|
}
|
|
130
134
|
}
|
|
131
135
|
|
|
132
|
-
const goToBack = () => navigation?.canGoBack() && navigation.goBack()
|
|
133
|
-
const onNavigationRedirect = (route: string, params?: any) => navigation.navigate(route, params)
|
|
134
|
-
|
|
135
|
-
useEffect(() => {
|
|
136
|
-
if (orderState.loading && auth && orderState.options.address?.location) {
|
|
137
|
-
onNavigatorRedirect()
|
|
138
|
-
}
|
|
139
|
-
}, [orderState.options.address])
|
|
140
|
-
|
|
141
136
|
useEffect(() => {
|
|
142
137
|
console.log('From profile : ' + isProfile)
|
|
143
138
|
}, [])
|
|
@@ -365,7 +365,7 @@ export const BusinessListingSearchUI = (props: BusinessSearchParams) => {
|
|
|
365
365
|
</View>
|
|
366
366
|
</Placeholder>
|
|
367
367
|
<Placeholder style={{ paddingHorizontal: 5, bottom: 10 }} Animation={Fade}>
|
|
368
|
-
<View style={{ flexDirection: 'row-reverse' }}>
|
|
368
|
+
<View style={{ flexDirection: 'row-reverse', overflow: 'hidden' }}>
|
|
369
369
|
<PlaceholderLine
|
|
370
370
|
width={24}
|
|
371
371
|
height={70}
|