%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emergentqj/actioncivile/pre-auth/.8352c036a19b0051d0217d27d25e3f4a/static/js/reducers/
Upload File :
Create Path :
Current File : /home/emergentqj/actioncivile/pre-auth/.8352c036a19b0051d0217d27d25e3f4a/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;

Zerion Mini Shell 1.0