mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
Co-authored-by: Felix Spöttel <1682504+fspoettel@users.noreply.github.com> Co-authored-by: msramalho <19508417+msramalho@users.noreply.github.com>
27 lines
500 B
JavaScript
27 lines
500 B
JavaScript
import { combineReducers } from "redux";
|
|
import rootReducer from "./root.js";
|
|
import domain from "./domain.js";
|
|
import app from "./app.js";
|
|
import ui from "./ui.js";
|
|
import features from "./features.js";
|
|
|
|
function decorateRootReducer(rootReducer, reducer) {
|
|
return (state, action) =>
|
|
reducer(
|
|
{
|
|
...rootReducer(state, action),
|
|
},
|
|
action
|
|
);
|
|
}
|
|
|
|
export default decorateRootReducer(
|
|
rootReducer,
|
|
combineReducers({
|
|
app,
|
|
domain,
|
|
ui,
|
|
features,
|
|
})
|
|
);
|