client/src/reducers/index.js
changeset 134 be36eed5e6e0
parent 129 d48946d164c6
child 168 ea92f4fe783d
equal deleted inserted replaced
133:6f3078f7fd47 134:be36eed5e6e0
     1 import { combineReducers } from 'redux-immutable';
     1 import { combineReducers } from 'redux-immutable';
     2 import { routerReducer } from 'react-router-redux';
     2 import { routerReducer } from 'react-router-redux';
     3 
     3 
     4 import notes from './notesReducer';
     4 import notes from './notesReducer';
     5 import { sessions } from './sessionsReducer';
     5 import { sessions } from './sessionsReducer';
     6 import { isAuthenticated, currentUser, login, register, token, groups, createGroup, clientId } from './authReducer';
     6 import { isAuthenticated, currentUser, currentGroup, login, register, token, groups, createGroup, clientId } from './authReducer';
     7 import { autoSubmit, online } from './miscReducer';
     7 import { autoSubmit, online } from './miscReducer';
     8 import { isSynchronizing, lastSync } from './syncReducer';
     8 import { isSynchronizing, lastSync } from './syncReducer';
     9 
     9 
    10 
    10 
    11 const rootReducer = combineReducers({
    11 const rootReducer = combineReducers({
    14   login,
    14   login,
    15   register,
    15   register,
    16   authStatus: combineReducers({
    16   authStatus: combineReducers({
    17     token,
    17     token,
    18     currentUser,
    18     currentUser,
       
    19     currentGroup,
    19     isAuthenticated,
    20     isAuthenticated,
    20     clientId,
    21     clientId,
    21     lastSync
    22     lastSync
    22   }),
    23   }),
    23   status: combineReducers({
    24   status: combineReducers({