2015-12-28 23:34:32 +00:00
|
|
|
import { combineReducers } from 'redux';
|
2017-06-06 23:03:35 +00:00
|
|
|
import app from './app';
|
2015-12-28 23:34:32 +00:00
|
|
|
import channels from './channels';
|
2019-01-23 06:34:39 +00:00
|
|
|
import channelSearch from './channelSearch';
|
2015-12-28 23:34:32 +00:00
|
|
|
import input from './input';
|
|
|
|
import messages from './messages';
|
2019-01-05 06:08:34 +00:00
|
|
|
import modals from './modals';
|
2015-12-28 23:34:32 +00:00
|
|
|
import privateChats from './privateChats';
|
|
|
|
import search from './search';
|
|
|
|
import servers from './servers';
|
2016-01-11 20:04:57 +00:00
|
|
|
import settings from './settings';
|
2015-12-28 23:34:32 +00:00
|
|
|
import tab from './tab';
|
2016-01-11 22:31:06 +00:00
|
|
|
import ui from './ui';
|
2015-12-28 23:34:32 +00:00
|
|
|
|
2017-05-26 06:20:00 +00:00
|
|
|
export * from './selectors';
|
|
|
|
export const getRouter = state => state.router;
|
|
|
|
|
2017-05-07 20:19:15 +00:00
|
|
|
export default function createReducer(router) {
|
|
|
|
return combineReducers({
|
|
|
|
router,
|
2017-06-06 23:03:35 +00:00
|
|
|
app,
|
2017-05-07 20:19:15 +00:00
|
|
|
channels,
|
2019-01-23 06:34:39 +00:00
|
|
|
channelSearch,
|
2017-05-07 20:19:15 +00:00
|
|
|
input,
|
|
|
|
messages,
|
2019-01-05 06:08:34 +00:00
|
|
|
modals,
|
2017-05-07 20:19:15 +00:00
|
|
|
privateChats,
|
|
|
|
search,
|
|
|
|
servers,
|
|
|
|
settings,
|
|
|
|
tab,
|
|
|
|
ui
|
|
|
|
});
|
|
|
|
}
|