Created
June 26, 2018 15:47
-
-
Save nazrdogan/00caa4aa6d9e892b4deb2703e70dd065 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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