adding activities reducer actions
[sdc/sdc-workflow-designer.git] / workflow-designer-ui / src / main / frontend / src / rootReducers.js
1 /*
2 * Copyright © 2018 European Support Limited
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10  * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 import { combineReducers } from 'redux';
18 import { i18nReducer } from 'react-redux-i18n';
19
20 import catalog from 'features/catalog/catalogReducer';
21 import inputOutput from 'features/version/inputOutput/inputOutputReducer';
22 import notificationsReducer from 'shared/notifications/notificationsReducer';
23 import versionReducer from 'features/version/versionReducer';
24 import loader from 'shared/loader/LoaderReducer';
25 import modal from 'shared/modal/modalWrapperReducer';
26 import overviewReducer from 'features/workflow/overview/overviewReducer';
27 import workflowReducer from 'features/workflow/workflowReducer';
28 import compositionReducer from 'features/version/composition/compositionReducer';
29 import activitiesReducer from 'features/activities/activitiesReducer';
30
31 export default combineReducers({
32     i18n: i18nReducer,
33     catalog,
34     notifications: notificationsReducer,
35     currentVersion: combineReducers({
36         general: versionReducer,
37         inputOutput,
38         composition: compositionReducer
39     }),
40     workflow: combineReducers({
41         data: workflowReducer,
42         versions: overviewReducer
43     }),
44     activities: activitiesReducer,
45     loader,
46     modal
47 });