From 4d021a4634a6bc84ee25f0d43cbc6450d94265f0 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Mon, 31 Jul 2023 14:08:34 +0700
Subject: google sing up

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

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

diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx
index 4c4fed89..cda9e970 100644
--- a/src/pages/_app.jsx
+++ b/src/pages/_app.jsx
@@ -7,12 +7,14 @@ import { QueryClient, QueryClientProvider } from 'react-query'
 import useDevice from '@/core/hooks/useDevice'
 import { useEffect, useState } from 'react'
 import LogoSpinner from '@/core/components/elements/Spinner/LogoSpinner'
+import { SessionProvider } from 'next-auth/react'
 
 const queryClient = new QueryClient()
 
-function MyApp({ Component, pageProps }) {
+function MyApp({ Component, pageProps :{session, ...pageProps} }) {
   const router = useRouter()
   const { isMobile } = useDevice()
+  console.log('ini session', session)
 
   const [animateLoader, setAnimateLoader] = useState(false)
 
@@ -47,7 +49,7 @@ function MyApp({ Component, pageProps }) {
   }, [isMobile])
 
   return (
-    <>
+    <SessionProvider session={session}>
       <AnimatePresence>
         {animateLoader && (
           <motion.div
@@ -81,7 +83,7 @@ function MyApp({ Component, pageProps }) {
           {!animateLoader && <Component {...pageProps} key={router.asPath} />}
         </AnimatePresence>
       </QueryClientProvider>
-    </>
+    </SessionProvider>
   )
 }
 
-- 
cgit v1.2.3

