1
0

alerts.jsx 408 B

123456789101112131415161718192021222324
  1. export const ALERT_SHOW = 'ALERT_SHOW';
  2. export const ALERT_DISMISS = 'ALERT_DISMISS';
  3. export const ALERT_CLEAR = 'ALERT_CLEAR';
  4. export function dismissAlert(alert) {
  5. return {
  6. type: ALERT_DISMISS,
  7. alert
  8. };
  9. };
  10. export function clearAlert() {
  11. return {
  12. type: ALERT_CLEAR
  13. };
  14. };
  15. export function showAlert(title, message) {
  16. return {
  17. type: ALERT_SHOW,
  18. title,
  19. message
  20. };
  21. };