From f01f28a7eac76c6da5bf857bfc80fd347586ce7f Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Wed, 16 Aug 2023 09:39:47 +0700
Subject: register google

---
 src/pages/_app.jsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/pages/_app.jsx')

diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx
index 9f30752a..86cbe963 100644
--- a/src/pages/_app.jsx
+++ b/src/pages/_app.jsx
@@ -25,9 +25,9 @@ function MyApp({ Component, pageProps: { session, ...pageProps } }) {
   const [authenticated, setAuthenticated] = useState(null)
   const auth = getAuth()
 
-  useEffect(() => {
-    setAuthenticated(auth)
-  }, [auth])
+  // useEffect(() => {
+  //   setAuthenticated(auth)
+  // }, [auth])
 
   useEffect(() => {
     const handleRouteChangeStart = () => setAnimateLoader(true)
@@ -60,7 +60,7 @@ function MyApp({ Component, pageProps: { session, ...pageProps } }) {
   }, [isMobile])
 
   return (
-    <AuthContext.Provider value={{authenticated, setAuthenticated}}>
+    // <AuthContext.Provider value={{authenticated, setAuthenticated}}>
       <SessionProvider session={session}>
         <AnimatePresence>
           {animateLoader && (
@@ -96,7 +96,7 @@ function MyApp({ Component, pageProps: { session, ...pageProps } }) {
           </AnimatePresence>
         </QueryClientProvider>
       </SessionProvider>
-    </AuthContext.Provider>
+    // </AuthContext.Provider>
   )
 }
 
-- 
cgit v1.2.3

