From d399212b942d8362e5cf6c76c996442f5dfe3b70 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Fri, 30 Jun 2023 16:50:18 +0700
Subject: user activity

---
 src/pages/_app.jsx | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

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

diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx
index 9a8960db..4c4fed89 100644
--- a/src/pages/_app.jsx
+++ b/src/pages/_app.jsx
@@ -7,7 +7,6 @@ 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 axios from 'axios'
 
 const queryClient = new QueryClient()
 
@@ -17,14 +16,6 @@ function MyApp({ Component, pageProps }) {
 
   const [animateLoader, setAnimateLoader] = useState(false)
 
-  useEffect(() => {
-    const data = {
-      page_title: document.title,
-      url: window.location.href
-    }
-    axios.get(`/api/user-activity?page_title=${data.page_title}&url=${data.url}`)
-  }, [])
-
   useEffect(() => {
     const handleRouteChangeStart = () => setAnimateLoader(true)
     const handleRouteChangeComplete = () => setAnimateLoader(false)
@@ -62,9 +53,9 @@ function MyApp({ Component, pageProps }) {
           <motion.div
             initial={{ opacity: 0 }}
             animate={{ opacity: 1 }}
-            exit={{ opacity: 0, transition: { delay: 0.05 } }}
+            exit={{ opacity: 0 }}
             transition={{
-              duration: 0.15
+              duration: 0.1
             }}
             className='fixed w-screen h-screen z-[500] bg-white flex justify-center items-center'
           >
-- 
cgit v1.2.3

