ordering-ui-react-native 0.18.98 → 0.19.0-test
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/business/src/components/LoginForm/index.tsx +2 -2
- package/themes/business/src/components/NewOrderNotification/index.tsx +1 -1
- package/themes/business/src/components/ReviewCustomer/index.tsx +1 -1
- package/themes/business/src/components/StoresList/index.tsx +1 -2
- package/themes/original/src/components/BusinessProductsList/index.tsx +2 -1
package/package.json
CHANGED
|
@@ -209,11 +209,11 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
209
209
|
props.handleChangeTab(val);
|
|
210
210
|
|
|
211
211
|
if (loginTab === 'email') {
|
|
212
|
-
scrollRefTab.current?.scrollToEnd({ animated: true });
|
|
212
|
+
scrollRefTab?.current?.scrollToEnd && scrollRefTab.current?.scrollToEnd({ animated: true });
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
if (loginTab === 'cellphone') {
|
|
216
|
-
scrollRefTab.current?.scrollTo({ animated: true });
|
|
216
|
+
scrollRefTab?.current?.scrollTo && scrollRefTab.current?.scrollTo({ animated: true });
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
219
|
|
|
@@ -45,7 +45,7 @@ const NewOrderNotificationUI = (props: any) => {
|
|
|
45
45
|
},
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
const notificationSound = new Sound(
|
|
48
|
+
const notificationSound = new Sound('https://cdn.freesound.org/previews/81/81205_1274366-lq.mp3', '', () => {});
|
|
49
49
|
|
|
50
50
|
let _timeout: any = null
|
|
51
51
|
let times = 0
|
|
@@ -159,7 +159,7 @@ const ReviewCustomerUI = (props: ReviewCustomerParams) => {
|
|
|
159
159
|
useEffect(() => {
|
|
160
160
|
if (scrollref?.current) {
|
|
161
161
|
Keyboard.addListener('keyboardDidShow', () => {
|
|
162
|
-
scrollref?.current && scrollref.current.scrollToEnd()
|
|
162
|
+
scrollref?.current?.scrollToEnd && scrollref.current.scrollToEnd()
|
|
163
163
|
})
|
|
164
164
|
}
|
|
165
165
|
}, [scrollref?.current])
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { View, StyleSheet, Dimensions, Linking } from 'react-native';
|
|
3
|
-
import { ScrollView, TouchableOpacity } from 'react-native-gesture-handler';
|
|
2
|
+
import { View, StyleSheet, Dimensions, Linking, ScrollView, TouchableOpacity } from 'react-native';
|
|
4
3
|
import { Placeholder, PlaceholderLine, Fade } from 'rn-placeholder';
|
|
5
4
|
import NetInfo from '@react-native-community/netinfo';
|
|
6
5
|
import { useTheme } from 'styled-components/native';
|
|
@@ -309,10 +309,11 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
309
309
|
? t('SEARCH_REDIRECT', 'Go to Businesses')
|
|
310
310
|
: t('CLEAR_FILTERS', 'Clear filters')
|
|
311
311
|
}
|
|
312
|
-
onClickButton={() =>
|
|
312
|
+
onClickButton={!businessSingleId ? () =>
|
|
313
313
|
!searchValue
|
|
314
314
|
? handleSearchRedirect && handleSearchRedirect()
|
|
315
315
|
: handleCancelSearch && handleCancelSearch()
|
|
316
|
+
: null
|
|
316
317
|
}
|
|
317
318
|
/>
|
|
318
319
|
</WrapperNotFound>
|