2016-10-18 11:09:45 -04:00
|
|
|
export const NOTIFICATION_SHOW = 'NOTIFICATION_SHOW';
|
2016-09-12 13:20:55 -04:00
|
|
|
export const NOTIFICATION_DISMISS = 'NOTIFICATION_DISMISS';
|
2016-09-21 16:07:18 -04:00
|
|
|
export const NOTIFICATION_CLEAR = 'NOTIFICATION_CLEAR';
|
2016-09-12 13:20:55 -04:00
|
|
|
|
|
|
|
export function dismissNotification(notification) {
|
|
|
|
return {
|
|
|
|
type: NOTIFICATION_DISMISS,
|
|
|
|
notification: notification
|
|
|
|
};
|
|
|
|
};
|
2016-09-21 16:07:18 -04:00
|
|
|
|
|
|
|
export function clearNotifications() {
|
|
|
|
return {
|
|
|
|
type: NOTIFICATION_CLEAR
|
|
|
|
};
|
|
|
|
};
|
2016-10-18 11:09:45 -04:00
|
|
|
|
|
|
|
export function showNotification(title, message) {
|
|
|
|
return {
|
|
|
|
type: NOTIFICATION_SHOW,
|
|
|
|
title: title,
|
|
|
|
message: message
|
|
|
|
};
|
|
|
|
};
|