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