mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Fixed duplicate modal in user info page
This commit is contained in:
parent
2ca1dd13ca
commit
ce2bffe1cb
1 changed files with 4 additions and 4 deletions
|
@ -56,7 +56,7 @@ export default function UserInfoPage() {
|
|||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ["user"] });
|
||||
queryClient.invalidateQueries({ queryKey: ["user_status"] });
|
||||
toast.show("Changes applied successfully", {
|
||||
toast.show("Student Status has been reset", {
|
||||
type: "success",
|
||||
placement: "top",
|
||||
duration: 2000,
|
||||
|
@ -111,7 +111,7 @@ export default function UserInfoPage() {
|
|||
onError: () => {
|
||||
toast.show("Server Error: Unable to query user info", {
|
||||
type: "warning",
|
||||
placement: "bottom",
|
||||
placement: "top",
|
||||
duration: 2000,
|
||||
animationType: "slide-in",
|
||||
});
|
||||
|
@ -129,7 +129,7 @@ export default function UserInfoPage() {
|
|||
});
|
||||
toast.show("Changes applied successfully", {
|
||||
type: "success",
|
||||
placement: "bottom",
|
||||
placement: "top",
|
||||
duration: 2000,
|
||||
animationType: "slide-in",
|
||||
});
|
||||
|
@ -138,7 +138,7 @@ export default function UserInfoPage() {
|
|||
onError: () => {
|
||||
toast.show("An error has occured\nChanges have not been saved", {
|
||||
type: "warning",
|
||||
placement: "bottom",
|
||||
placement: "top",
|
||||
duration: 2000,
|
||||
animationType: "slide-in",
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue