Created
May 25, 2017 09:40
-
-
Save Slavenin/9a48301e0a6bd43a9bccccc9f9be966c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { combineReducers } from 'redux' | |
import { reducer as formReducer } from 'redux-form' | |
import { routerReducer } from 'react-router-redux' | |
import App from './App' | |
import Menu from './Menu' | |
import Login from './Login' | |
import UniList from './UniList' | |
import UniForm from './UniForm' | |
import * as actions from '../constants/ActionTypes' | |
export const rootReducer = combineReducers({ | |
app: App, | |
tasks: UniList(actions.TASK_LIST_LOADING, actions.TASK_LIST_LOADED), | |
project: UniList(actions.PROJECT_LIST_LOADING, actions.PROJECT_LIST_LOADED), | |
passport: UniList(actions.PASSPORT_LIST_LOADING, actions.PASSPORT_LIST_LOADED), | |
dicts: UniList(actions.DICTS_LIST_LOADING, actions.DICTS_LIST_LOADED), | |
task_status: UniList(actions.TASK_STATUS_LIST_LOADING, actions.TASK_STATUS_LIST_LOADED), | |
task_form: UniForm( | |
actions.TASK_FORM_LOADING, actions.TASK_FORM_LOADED, | |
actions.TASK_FORM_EDIT_RESET, actions.TASK_MSG_HIDE, | |
actions.CREATING_NEW_TASK, actions.TASK_CREATE_SUCCESSFULLY, | |
actions.TASK_CREATE_ERROR | |
), | |
project_form: UniForm( | |
actions.PROJECT_FORM_LOADING, actions.PROJECT_FORM_LOADED, | |
actions.PROJECT_FORM_EDIT_RESET, actions.PROJECT_MSG_HIDE, | |
actions.CREATING_NEW_PROJECT, actions.PROJECT_CREATE_SUCCESSFULLY, | |
actions.PROJECT_CREATE_ERROR | |
), | |
passport_form: UniForm( | |
actions.PASSPORT_FORM_LOADING, actions.PASSPORT_FORM_LOADED, | |
actions.PASSPORT_FORM_EDIT_RESET, actions.PASSPORT_MSG_HIDE, | |
actions.CREATING_NEW_PASSPORT, actions.PASSPORT_CREATE_SUCCESSFULLY, | |
actions.PASSPORT_CREATE_ERROR | |
), | |
dict_form: UniForm( | |
actions.DICTS_FORM_LOADING, actions.DICTS_FORM_LOADED, | |
actions.DICTS_FORM_EDIT_RESET, actions.DICTS_MSG_HIDE, | |
actions.CREATING_NEW_DICTS, actions.DICTS_CREATE_SUCCESSFULLY, actions.DICTS_CREATE_ERROR | |
), | |
form: formReducer, | |
menu: Menu, | |
auth_form: Login, | |
router: routerReducer | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment