Colocate reducers, actions and selectors
This commit is contained in:
parent
1e7d4c3fe4
commit
889e3b88b7
53 changed files with 1031 additions and 914 deletions
30
client/src/js/state/index.js
Normal file
30
client/src/js/state/index.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
import { combineReducers } from 'redux';
|
||||
import channels from './channels';
|
||||
import environment from './environment';
|
||||
import input from './input';
|
||||
import messages from './messages';
|
||||
import privateChats from './privateChats';
|
||||
import search from './search';
|
||||
import servers from './servers';
|
||||
import settings from './settings';
|
||||
import tab from './tab';
|
||||
import ui from './ui';
|
||||
|
||||
export * from './selectors';
|
||||
export const getRouter = state => state.router;
|
||||
|
||||
export default function createReducer(router) {
|
||||
return combineReducers({
|
||||
router,
|
||||
channels,
|
||||
environment,
|
||||
input,
|
||||
messages,
|
||||
privateChats,
|
||||
search,
|
||||
servers,
|
||||
settings,
|
||||
tab,
|
||||
ui
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue