-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrootReducer.ts
64 lines (59 loc) · 2.82 KB
/
rootReducer.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { reducer as form } from 'redux-form';
import config from 'reducers/configReducer';
import fronts from 'reducers/frontsReducer';
import error from 'reducers/errorReducer';
import path from 'reducers/pathReducer';
import unpublishedChanges from 'reducers/unpublishedChangesReducer';
import clipboard from 'reducers/clipboardReducer';
import optionsModal from 'reducers/modalsReducer';
import editor from 'bundles/frontsUI';
import editionsIssue from 'bundles/editionsIssueBundle';
import {
capiLiveFeed,
capiPreviewFeed,
prefillFeed,
} from 'bundles/capiFeedBundle';
import staleFronts from 'reducers/staleFrontsReducer';
import feedState from 'reducers/feedStateReducer';
import { reducer as collections } from 'bundles/collectionsBundle';
import { reducer as pageViewData } from 'reducers/pageViewDataReducer';
import { reducer as externalArticles } from 'bundles/externalArticlesBundle';
import cards from 'reducers/cardsReducer';
import groups from 'reducers/groupsReducer';
import { reducer as focusReducer } from 'bundles/focusBundle';
import { reducer as featureSwitches } from 'reducers/featureSwitchesReducer';
import { reducer as notificationsReducer } from 'bundles/notificationsBundle';
import { reducer as recipesReducer } from 'bundles/recipesBundle';
import { reducer as chefsReducer } from 'bundles/chefsBundle';
import { reducer as feastKeywordsReducer } from 'bundles/feastKeywordBundle';
const rootReducer = (state: any = { feed: {} }, action: any) => ({
fronts: fronts(state.fronts, action),
config: config(state.config, action),
error: error(state.error, action),
path: path(state.path, action),
unpublishedChanges: unpublishedChanges(state.unpublishedChanges, action),
clipboard: clipboard(state.clipboard, action),
editor: editor(state.editor, action),
staleFronts: staleFronts(state.staleFronts, action),
form: form(state.form, action),
optionsModal: optionsModal(state.optionsModal, action),
feed: {
feedState: feedState(state.feed.feedState, action),
capiLiveFeed: capiLiveFeed(state.feed.capiLiveFeed, action),
capiPreviewFeed: capiPreviewFeed(state.feed.capiPreviewFeed, action),
prefillFeed: prefillFeed(state.feed.prefillFeed, action),
},
focus: focusReducer(state.focus, action),
editionsIssue: editionsIssue(state.editionsIssue, action),
featureSwitches: featureSwitches(state.featureSwitches, action),
cards: cards(state.cards, action),
groups: groups(state.groups, action, state),
collections: collections(state.collections, action),
externalArticles: externalArticles(state.externalArticles, action),
pageViewData: pageViewData(state.pageViewData, action),
notifications: notificationsReducer(state.notifications, action),
recipes: recipesReducer(state.recipes, action),
chefs: chefsReducer(state.chefs, action),
feastKeywords: feastKeywordsReducer(state.feastKeywords, action),
});
export default rootReducer;