Adds navigation tree to define the hierarchy

This commit is contained in:
Sofiya Tepikin committed 2020-02-04 20:45:23 +01:00
1 parent e479b93638
commit e66ca3f8db
6 files changed
+105 -52

No files matched your search

+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,
}
}
}