Use transient for info and sucess alerts

Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
This commit is contained in:
Andre Wanlin
2023-06-17 11:34:51 -05:00
parent 1240df156b
commit 2e036369d8
8 changed files with 25 additions and 2 deletions
+1
View File
@@ -71,6 +71,7 @@ export const AddShortcut = ({
alertApi.post({
message: `Added shortcut '${title}' to your sidebar`,
severity: 'success',
display: 'transient',
});
} catch (error) {
alertApi.post({
+2
View File
@@ -74,6 +74,7 @@ export const EditShortcut = ({
alertApi.post({
message: `Updated shortcut '${title}'`,
severity: 'success',
display: 'transient',
});
} catch (error) {
alertApi.post({
@@ -91,6 +92,7 @@ export const EditShortcut = ({
alertApi.post({
message: `Removed shortcut '${shortcut.title}' from your sidebar`,
severity: 'success',
display: 'transient',
});
} catch (error) {
alertApi.post({