Adds navigation tree to define the hierarchy

This commit is contained in:
Sofiya Tepikin
2019-11-06 18:58:40 +01:00
parent e479b93638
commit e66ca3f8db
6 changed files with 105 additions and 52 deletions
+2 -4
View File
@@ -3,14 +3,12 @@ import { createSlice } from 'redux-starter-kit'
const navigationSlice = createSlice({
slice: 'navigation',
initialState: {
current: 'Home',
prev: null,
currentPage: 'Home',
},
reducers: {
navigate: (state, action) => {
return {
current: action.payload,
prev: state.current
currentPage: action.payload,
}
}
}