1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Added navigator and handle OneDrive auth

This commit is contained in:
Laurent Cozic
2017-11-06 18:35:04 +00:00
parent d763b13e44
commit 8dd41dca96
12 changed files with 305 additions and 77 deletions

View File

@@ -23,12 +23,6 @@ const defaultState = {
searchQuery: '',
settings: {},
appState: 'starting',
sideMenuOpenPercent: 0,
route: {
type: 'NAV_GO',
routeName: 'Welcome',
params: {},
},
windowContentSize: { width: 0, height: 0 },
};
@@ -107,7 +101,6 @@ function defaultNotesParentType(state, exclusion) {
const reducer = (state = defaultState, action) => {
let newState = state;
let historyGoingBack = false;
try {
switch (action.type) {
@@ -305,12 +298,6 @@ const reducer = (state = defaultState, action) => {
newState.appState = action.state;
break;
case 'WINDOW_CONTENT_SIZE_SET':
newState = Object.assign({}, state);
newState.windowContentSize = action.size;
break;
}
} catch (error) {
error.message = 'In reducer: ' + error.message + ' Action: ' + JSON.stringify(action);