Skip to content

Instantly share code, notes, and snippets.

@nazrdogan
Created June 26, 2018 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nazrdogan/00caa4aa6d9e892b4deb2703e70dd065 to your computer and use it in GitHub Desktop.
Save nazrdogan/00caa4aa6d9e892b4deb2703e70dd065 to your computer and use it in GitHub Desktop.
import { combineReducers } from 'redux';
import { reducer as reduxFormReducer } from "redux-form";
import authReducer from './auth_reducer';
import main from './main'
import BookingData from './booking_reducer';
import StepOne from './stepone';
import StepTwo from './stepTwo'
const AppReducer = combineReducers({
form: reduxFormReducer,
auth: authReducer,
Main:main,
StepOneReducer:StepOne,
StepTwoReducer:StepTwo,
BookingData:BookingData,
})
const rootReducer = (state, action) => {
if (action.type === "RESET") {
const { nav } = state
state = undefined
}
return AppReducer(state, action)
}
export default rootReducer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment