hometown/app/javascript/mastodon/reducers/index.js

44 lines
1015 B
JavaScript
Raw Normal View History

2016-11-20 18:39:18 +00:00
import { combineReducers } from 'redux-immutable';
import timelines from './timelines';
import meta from './meta';
import alerts from './alerts';
import { loadingBarReducer } from 'react-redux-loading-bar';
2016-11-20 18:39:18 +00:00
import modal from './modal';
import user_lists from './user_lists';
import accounts from './accounts';
import accounts_counters from './accounts_counters';
2016-11-20 18:39:18 +00:00
import statuses from './statuses';
import relationships from './relationships';
import settings from './settings';
2017-01-16 12:27:58 +00:00
import status_lists from './status_lists';
import cards from './cards';
import reports from './reports';
import contexts from './contexts';
const reducers = {
timelines,
meta,
2016-11-20 18:39:18 +00:00
alerts,
loadingBar: loadingBarReducer,
2016-10-24 16:07:40 +00:00
modal,
user_lists,
2017-01-16 12:27:58 +00:00
status_lists,
accounts,
accounts_counters,
statuses,
2016-11-13 12:04:18 +00:00
relationships,
settings,
cards,
reports,
contexts,
};
export function createReducer(asyncReducers) {
return combineReducers({
...reducers,
...asyncReducers,
});
}
export default combineReducers(reducers);