index.ts 460 Bytes
Newer Older
1
import { combineReducers } from 'redux';
Viacheslav Pavlov's avatar
Viacheslav Pavlov committed
2
3
// express reducers
import serverInfo from 'core/reducer/serverInfo';
4
5
6

import coreReducers from '@gringlobal/client/reducer';
// model reducers
Viacheslav Pavlov's avatar
Viacheslav Pavlov committed
7
import cooperator from 'cooperator/reducer';
8
9
10
import user from 'user/reducer';

const rootReducer = (history?) => (combineReducers({
Viacheslav Pavlov's avatar
Viacheslav Pavlov committed
11
12
13
  // express reducers
  serverInfo,

14
  // model reducers
Viacheslav Pavlov's avatar
Viacheslav Pavlov committed
15
  cooperator,
16
  user,
17
18
19
20
21
22

  ...coreReducers(history),
}));


export default rootReducer;