client/src/reducers/index.js
author Alexandre Segura <mex.zktk@gmail.com>
Wed, 31 May 2017 17:51:54 +0200
changeset 12 48ddaa42b810
parent 3 3b5d37d84cfe
child 44 3b20e2b584fe
permissions -rw-r--r--
Draft implementation of sessions. - Introduce react-router & add some pages. - Add login page (does nothing). - Allow creating a new session. - Allow adding notes into a session.

import { combineReducers } from 'redux-immutable';
import { routerReducer } from 'react-router-redux';

import notes from './notesReducer';
import { currentSession, sessions } from './sessionsReducer';
import { isAuthenticated } from './authReducer';

const rootReducer = combineReducers({
  currentSession,
  sessions,
  notes,
  isAuthenticated,
  router: routerReducer,
});

export default rootReducer;