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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.22.95",
3
+ "version": "0.22.96",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -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',
@@ -542,7 +542,7 @@ const ProfileUI = (props: ProfileParams) => {
542
542
  <Actions>
543
543
  <LanguageSelector />
544
544
 
545
- <LogoutButton />
545
+ <LogoutButton setRootState={props.setRootState} />
546
546
  </Actions>
547
547
  <OModal
548
548
  open={openModal}