mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 11:39:16 +01:00
refactor: ♻️ Refactor toaster code for more accessibility and better UI
This commit is contained in:
parent
2b14813555
commit
5e6e881b98
14 changed files with 96 additions and 151 deletions
|
|
@ -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",
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue