From ce2bffe1cb7b47e9aa6156f22f1a95fb1e26e20a Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Mon, 14 Aug 2023 22:01:20 +0800 Subject: [PATCH] Fixed duplicate modal in user info page --- src/routes/UserInfoPage/UserInfoPage.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/UserInfoPage/UserInfoPage.tsx b/src/routes/UserInfoPage/UserInfoPage.tsx index 6292c11..3836bf7 100644 --- a/src/routes/UserInfoPage/UserInfoPage.tsx +++ b/src/routes/UserInfoPage/UserInfoPage.tsx @@ -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", });