unioil-loyalty-rn-app/app/redux/reducers/AppTermsAndConditionsReduce...

18 lines
442 B
JavaScript

import { TYPE_APP_TERMS_AND_CONDITION } from '../types';
const initialState = {
terms_and_conditions: undefined
};
export function appTermsAndConditionsReducer(state = initialState, action) {
switch (action.type) {
case TYPE_APP_TERMS_AND_CONDITION: {
return Object.assign({}, state, {
terms_and_conditions: action.value
});
}
default:
return state;
}
}