mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 22:19:41 +01:00
update state library
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
import {FlatList, TextInput} from 'react-native-gesture-handler';
|
||||
import {notesnook} from '../../../e2e/test.ids';
|
||||
import {Actions} from '../../provider/Actions';
|
||||
import { useMenuStore } from '../../provider/stores';
|
||||
import {DDS} from '../../services/DeviceDetection';
|
||||
import {ToastEvent} from '../../services/EventManager';
|
||||
import Navigation from '../../services/Navigation';
|
||||
@@ -203,7 +204,7 @@ export class AddNotebookDialog extends React.Component {
|
||||
id: id,
|
||||
});
|
||||
}
|
||||
updateEvent({type: Actions.MENU_PINS});
|
||||
useMenuStore.getState().setMenuPins();
|
||||
Navigation.setRoutesToUpdate([
|
||||
Navigation.routeNames.Notebooks,
|
||||
Navigation.routeNames.Notebook,
|
||||
|
||||
Reference in New Issue
Block a user