Created
August 29, 2016 19:06
-
-
Save KensoDev/e74f5b29c905daa73fa1f481acbbdc4c 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 * as actionTypes from '../../constants/actionTypes'; | |
const initialState = { | |
selected: 'Hotel', | |
} | |
export default function itemTypeReducer(state = initialState, action) { | |
if (action.type == actionTypes.SELECT_ITEM_TYPE) { | |
return { | |
selected: action.itemType | |
} | |
} | |
return state; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment