You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
537 B

  1. export const NOTIFICATION_SHOW = 'NOTIFICATION_SHOW';
  2. export const NOTIFICATION_DISMISS = 'NOTIFICATION_DISMISS';
  3. export const NOTIFICATION_CLEAR = 'NOTIFICATION_CLEAR';
  4. export function dismissNotification(notification) {
  5. return {
  6. type: NOTIFICATION_DISMISS,
  7. notification: notification
  8. };
  9. };
  10. export function clearNotifications() {
  11. return {
  12. type: NOTIFICATION_CLEAR
  13. };
  14. };
  15. export function showNotification(title, message) {
  16. return {
  17. type: NOTIFICATION_SHOW,
  18. title: title,
  19. message: message
  20. };
  21. };