-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: tie redux store to react router
- Loading branch information
1 parent
273bda6
commit 6da9ff4
Showing
8 changed files
with
152 additions
and
114 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { combineReducers } from 'redux'; | ||
import { connectRouter } from 'connected-react-router'; | ||
|
||
import todCalculatorReducer from './features/todCalculator'; | ||
import buttonsReducer from './features/buttons'; | ||
import simbriefReducer from './features/simBrief'; | ||
import performanceReducer from './features/performance'; | ||
import flightProgressReducer from './features/flightProgress'; | ||
import navigationTabReducer from './features/navigationPage'; | ||
import dashboardReducer from './features/dashboard'; | ||
import checklistsReducer from './features/checklists'; | ||
import keyboardReducer from './features/keyboard'; | ||
import dispatchPageReducer from './features/dispatchPage'; | ||
import failuresPageReducer from './features/failuresPage'; | ||
|
||
export const createRootReducer = (history) => combineReducers({ | ||
router: connectRouter(history), | ||
todCalculator: todCalculatorReducer, | ||
buttons: buttonsReducer, | ||
simbrief: simbriefReducer, | ||
performance: performanceReducer, | ||
flightProgress: flightProgressReducer, | ||
navigationTab: navigationTabReducer, | ||
dashboard: dashboardReducer, | ||
trackingChecklists: checklistsReducer, | ||
keyboard: keyboardReducer, | ||
dispatchPage: dispatchPageReducer, | ||
failuresPage: failuresPageReducer, | ||
}); |
Oops, something went wrong.