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

44 lines
1,015 B
JavaScript
Raw Normal View History

2016-11-21 03:39:18 +09: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-21 03:39:18 +09:00
import modal from './modal';
import user_lists from './user_lists';
import accounts from './accounts';
import accounts_counters from './accounts_counters';
2016-11-21 03:39:18 +09:00
import statuses from './statuses';
import relationships from './relationships';
import settings from './settings';
2017-01-16 21:27:58 +09: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-21 03:39:18 +09:00
alerts,
loadingBar: loadingBarReducer,
2016-10-25 01:07:40 +09:00
modal,
user_lists,
2017-01-16 21:27:58 +09:00
status_lists,
accounts,
accounts_counters,
statuses,
2016-11-13 21:04:18 +09:00
relationships,
settings,
cards,
reports,
contexts,
};
export function createReducer(asyncReducers) {
return combineReducers({
...reducers,
...asyncReducers,
});
}
export default combineReducers(reducers);