From d6a64f45fd4530cfee4f7721f0c6e7ca28fe677f Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 12 Sep 2016 19:20:55 +0200 Subject: Adding a notification stack for error messages --- app/assets/javascripts/components/actions/notifications.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/assets/javascripts/components/actions/notifications.jsx (limited to 'app/assets/javascripts/components/actions/notifications.jsx') diff --git a/app/assets/javascripts/components/actions/notifications.jsx b/app/assets/javascripts/components/actions/notifications.jsx new file mode 100644 index 000000000..cf1e50a69 --- /dev/null +++ b/app/assets/javascripts/components/actions/notifications.jsx @@ -0,0 +1,8 @@ +export const NOTIFICATION_DISMISS = 'NOTIFICATION_DISMISS'; + +export function dismissNotification(notification) { + return { + type: NOTIFICATION_DISMISS, + notification: notification + }; +}; -- cgit