Fixed duplicate modal in user info page

This commit is contained in:
Keannu Bernasol 2023-08-14 22:01:20 +08:00
parent 2ca1dd13ca
commit ce2bffe1cb

View file

@ -56,7 +56,7 @@ export default function UserInfoPage() {
onSuccess: () => { onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ["user"] }); queryClient.invalidateQueries({ queryKey: ["user"] });
queryClient.invalidateQueries({ queryKey: ["user_status"] }); queryClient.invalidateQueries({ queryKey: ["user_status"] });
toast.show("Changes applied successfully", { toast.show("Student Status has been reset", {
type: "success", type: "success",
placement: "top", placement: "top",
duration: 2000, duration: 2000,
@ -111,7 +111,7 @@ export default function UserInfoPage() {
onError: () => { onError: () => {
toast.show("Server Error: Unable to query user info", { toast.show("Server Error: Unable to query user info", {
type: "warning", type: "warning",
placement: "bottom", placement: "top",
duration: 2000, duration: 2000,
animationType: "slide-in", animationType: "slide-in",
}); });
@ -129,7 +129,7 @@ export default function UserInfoPage() {
}); });
toast.show("Changes applied successfully", { toast.show("Changes applied successfully", {
type: "success", type: "success",
placement: "bottom", placement: "top",
duration: 2000, duration: 2000,
animationType: "slide-in", animationType: "slide-in",
}); });
@ -138,7 +138,7 @@ export default function UserInfoPage() {
onError: () => { onError: () => {
toast.show("An error has occured\nChanges have not been saved", { toast.show("An error has occured\nChanges have not been saved", {
type: "warning", type: "warning",
placement: "bottom", placement: "top",
duration: 2000, duration: 2000,
animationType: "slide-in", animationType: "slide-in",
}); });