%PDF- %PDF-
Direktori : /home/emergentqj/actioncivile/pre-auth/.4cc3a2e1590a4463a5f392ddcc26929e/static/js/reducers/ |
Current File : /home/emergentqj/actioncivile/pre-auth/.4cc3a2e1590a4463a5f392ddcc26929e/static/js/reducers/alertModal.js |
import LIST_ACTIONS from "../constants/action_types"; const defaultState = { show: false, }; const alertModal = (state = defaultState, action = {}) => { switch (action.type) { case LIST_ACTIONS.SHOW_ALERT_MODAL: return action.payload; case LIST_ACTIONS.HIDE_ALERT_MODAL: return defaultState; default: return state; } }; export default alertModal;