Rewrite login and register related queries using React Query

Change-Id: Ifb462a30b3100043b29aaa3db7c321950937cad1
diff --git a/client/src/contexts/AlertSnackbarProvider.tsx b/client/src/contexts/AlertSnackbarProvider.tsx
index e5da7be..ac93c6b 100644
--- a/client/src/contexts/AlertSnackbarProvider.tsx
+++ b/client/src/contexts/AlertSnackbarProvider.tsx
@@ -57,6 +57,7 @@
 type IAlertSnackbarContext = {
   alertContent: AlertContent;
   setAlertContent: SetState<AlertContent>;
+  closeAlert: () => void;
 };
 
 const defaultAlertSnackbarContext: IAlertSnackbarContext = {
@@ -67,6 +68,7 @@
     alertOpen: false,
   },
   setAlertContent: () => {},
+  closeAlert: () => {},
 };
 
 type AlertMessageKeys =
@@ -118,6 +120,7 @@
   const value = {
     alertContent,
     setAlertContent,
+    closeAlert,
   };
 
   return (