ordering-ui-react-native 0.22.95 → 0.22.96
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
|
@@ -7,7 +7,7 @@ import { OIcon, OText } from '../shared';
|
|
|
7
7
|
import { _retrieveStoreData, _clearStoreData } from '../../providers/StoreUtil';
|
|
8
8
|
|
|
9
9
|
const LogoutButtonUI = (props: any) => {
|
|
10
|
-
const { handleLogoutClick } = props;
|
|
10
|
+
const { handleLogoutClick, setRootState } = props;
|
|
11
11
|
const [, t] = useLanguage();
|
|
12
12
|
const theme = useTheme();
|
|
13
13
|
|
|
@@ -16,6 +16,7 @@ const LogoutButtonUI = (props: any) => {
|
|
|
16
16
|
const res = await handleLogoutClick(data);
|
|
17
17
|
if (res) {
|
|
18
18
|
_clearStoreData({ excludedKeys: ['isTutorial', 'language'] });
|
|
19
|
+
setRootState && setRootState({ isAuth: false, token: null })
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
22
|
|
|
@@ -1080,7 +1080,6 @@ export const OrdersOption = (props: OrdersOptionParams) => {
|
|
|
1080
1080
|
const ordersProps = {
|
|
1081
1081
|
...props,
|
|
1082
1082
|
UIComponent: OrdersOptionUI,
|
|
1083
|
-
useDefualtSessionManager: true,
|
|
1084
1083
|
asDashboard: true,
|
|
1085
1084
|
combineTabs,
|
|
1086
1085
|
isIos: Platform.OS === 'ios',
|