Added selected header navigation BOD-164

This commit is contained in:
Patrick Fic
2020-09-09 11:57:58 -07:00
parent 637670da50
commit eff6f361ee
31 changed files with 309 additions and 76 deletions

View File

@@ -4,6 +4,7 @@ const INITIAL_STATE = {
loading: false,
breadcrumbs: [],
recentItems: [],
selectedHeader: "home",
scheduleLoad: {
load: {},
calculating: false,
@@ -13,6 +14,11 @@ const INITIAL_STATE = {
const applicationReducer = (state = INITIAL_STATE, action) => {
switch (action.type) {
case ApplicationActionTypes.SET_SELECTED_HEADER:
return {
...state,
selectedHeader: action.payload,
};
case ApplicationActionTypes.ADD_RECENT_ITEM:
return {
...state,