2016-11-20 20:39:18 +02:00
|
|
|
import { combineReducers } from 'redux-immutable';
|
|
|
|
import timelines from './timelines';
|
|
|
|
import meta from './meta';
|
|
|
|
import alerts from './alerts';
|
2016-09-20 00:25:59 +03:00
|
|
|
import { loadingBarReducer } from 'react-redux-loading-bar';
|
2016-11-20 20:39:18 +02:00
|
|
|
import modal from './modal';
|
|
|
|
import user_lists from './user_lists';
|
|
|
|
import accounts from './accounts';
|
2017-05-03 03:04:16 +03:00
|
|
|
import accounts_counters from './accounts_counters';
|
2016-11-20 20:39:18 +02:00
|
|
|
import statuses from './statuses';
|
|
|
|
import relationships from './relationships';
|
2017-01-09 15:00:55 +02:00
|
|
|
import settings from './settings';
|
2017-01-16 14:27:58 +02:00
|
|
|
import status_lists from './status_lists';
|
2017-01-20 02:00:14 +02:00
|
|
|
import cards from './cards';
|
2017-02-14 21:59:26 +02:00
|
|
|
import reports from './reports';
|
2017-06-11 18:07:35 +03:00
|
|
|
import contexts from './contexts';
|
2016-08-24 18:56:44 +03:00
|
|
|
|
2017-07-08 01:06:02 +03:00
|
|
|
const reducers = {
|
2016-08-31 17:15:12 +03:00
|
|
|
timelines,
|
|
|
|
meta,
|
2016-11-20 20:39:18 +02:00
|
|
|
alerts,
|
2016-09-20 00:25:59 +03:00
|
|
|
loadingBar: loadingBarReducer,
|
2016-10-24 19:07:40 +03:00
|
|
|
modal,
|
2016-10-27 22:59:56 +03:00
|
|
|
user_lists,
|
2017-01-16 14:27:58 +02:00
|
|
|
status_lists,
|
2016-10-30 16:06:43 +02:00
|
|
|
accounts,
|
2017-05-03 03:04:16 +03:00
|
|
|
accounts_counters,
|
2016-10-30 16:06:43 +02:00
|
|
|
statuses,
|
2016-11-13 14:04:18 +02:00
|
|
|
relationships,
|
2017-01-20 02:00:14 +02:00
|
|
|
settings,
|
2017-02-14 21:59:26 +02:00
|
|
|
cards,
|
2017-05-20 18:31:47 +03:00
|
|
|
reports,
|
2017-06-11 18:07:35 +03:00
|
|
|
contexts,
|
2017-07-08 01:06:02 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
export function createReducer(asyncReducers) {
|
|
|
|
return combineReducers({
|
|
|
|
...reducers,
|
|
|
|
...asyncReducers,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export default combineReducers(reducers);
|