Improve how errors are displayed in the UI
This commit is contained in:
parent
aea151a0de
commit
f88b8ce757
11 changed files with 54 additions and 80 deletions
|
@ -1,3 +1,4 @@
|
|||
export const NOTIFICATION_SHOW = 'NOTIFICATION_SHOW';
|
||||
export const NOTIFICATION_DISMISS = 'NOTIFICATION_DISMISS';
|
||||
export const NOTIFICATION_CLEAR = 'NOTIFICATION_CLEAR';
|
||||
|
||||
|
@ -13,3 +14,11 @@ export function clearNotifications() {
|
|||
type: NOTIFICATION_CLEAR
|
||||
};
|
||||
};
|
||||
|
||||
export function showNotification(title, message) {
|
||||
return {
|
||||
type: NOTIFICATION_SHOW,
|
||||
title: title,
|
||||
message: message
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue