refactor: ♻️ Refactor toaster code for more accessibility and better UI

This commit is contained in:
Jesse Wierzbinski 2024-06-19 15:40:13 -10:00
parent 2b14813555
commit 5e6e881b98
No known key found for this signature in database
14 changed files with 96 additions and 151 deletions

View file

@ -51,7 +51,7 @@ const link = async (providerId: string) => {
useEvent("notification:new", {
title: "Failed to link account",
message: e.response.data.error,
description: e.response.data.error,
type: "error",
});
}
@ -78,7 +78,7 @@ const unlink = async (providerId: string) => {
useEvent("notification:new", {
title: "Failed to unlink account",
message: e.response.data.error,
description: e.response.data.error,
type: "error",
});
}

View file

@ -112,7 +112,7 @@ const save = async () => {
useEvent("notification:new", {
title: "Failed to update profile",
message: error.response.data.error,
description: error.response.data.error,
type: "error",
});
}