ordering-ui-react-native 0.22.74 → 0.22.75
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
|
@@ -412,9 +412,9 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
412
412
|
ordersStoraged[status] = await _retrieveStoreData(`${status}_orders`) ?? []
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
if (!_combineTabs && combineTabs) {
|
|
416
|
-
setCombineTabsState(
|
|
417
|
-
_setStoreData('combine_pending_and_progress_orders', combineTabs);
|
|
415
|
+
if (_combineTabs || !_combineTabs && combineTabs) {
|
|
416
|
+
_combineTabs && setCombineTabsState(_combineTabs)
|
|
417
|
+
_setStoreData('combine_pending_and_progress_orders', _combineTabs || combineTabs);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
if (!lastConnection) {
|
|
@@ -457,10 +457,6 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
457
457
|
}
|
|
458
458
|
}, [isNetConnected]);
|
|
459
459
|
|
|
460
|
-
useEffect(() => {
|
|
461
|
-
setCombineTabsState(combineTabs)
|
|
462
|
-
}, [combineTabs])
|
|
463
|
-
|
|
464
460
|
return (
|
|
465
461
|
<>
|
|
466
462
|
<View style={styles.header}>
|
|
@@ -1032,7 +1028,10 @@ export const OrdersOption = (props: OrdersOptionParams) => {
|
|
|
1032
1028
|
const [, t] = useLanguage();
|
|
1033
1029
|
const [configState] = useConfig()
|
|
1034
1030
|
const [checkNotificationStatus, setCheckNotificationStatus] = useState({ open: false, checked: false })
|
|
1035
|
-
|
|
1031
|
+
|
|
1032
|
+
const getCombineTabsStoraged = async () => await _retrieveStoreData('combine_pending_and_progress_orders')
|
|
1033
|
+
const combineTabs = configState?.configs?.combine_pending_and_progress_orders?.value === '1' || getCombineTabsStoraged()
|
|
1034
|
+
|
|
1036
1035
|
const ordersProps = {
|
|
1037
1036
|
...props,
|
|
1038
1037
|
UIComponent: OrdersOptionUI,
|