-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1863: Tree component refactoring
- Loading branch information
Showing
7 changed files
with
133 additions
and
63 deletions.
There are no files selected for viewing
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { combineReducers } from "redux"; | ||
import metadata from "./metadata"; | ||
import tree from "./tree"; | ||
import frequencies from "./frequencies"; | ||
import entropy from "./entropy"; | ||
import controls, { ControlsState } from "./controls"; | ||
import browserDimensions from "./browserDimensions"; | ||
import notifications from "./notifications"; | ||
import narrative, { NarrativeState } from "./narrative"; | ||
import treeToo from "./treeToo"; | ||
import general from "./general"; | ||
import jsonCache from "./jsonCache"; | ||
import measurements from "./measurements"; | ||
|
||
interface RootState { | ||
metadata: ReturnType<typeof metadata> | ||
tree: ReturnType<typeof tree> | ||
frequencies: ReturnType<typeof frequencies> | ||
controls: ControlsState | ||
entropy: ReturnType<typeof entropy> | ||
browserDimensions: ReturnType<typeof browserDimensions> | ||
notifications: ReturnType<typeof notifications> | ||
narrative: NarrativeState | ||
treeToo: ReturnType<typeof treeToo> | ||
general: ReturnType<typeof general> | ||
jsonCache: ReturnType<typeof jsonCache> | ||
measurements: ReturnType<typeof measurements> | ||
} | ||
|
||
const rootReducer = combineReducers<RootState>({ | ||
metadata, | ||
tree, | ||
frequencies, | ||
controls, | ||
entropy, | ||
browserDimensions, | ||
notifications, | ||
narrative, | ||
treeToo, | ||
general, | ||
jsonCache, | ||
measurements | ||
}); | ||
|
||
export default rootReducer; |
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