diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-06-30 16:50:18 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-06-30 16:50:18 +0700 |
| commit | d399212b942d8362e5cf6c76c996442f5dfe3b70 (patch) | |
| tree | 75fa7886b8ca11f3cad84876992b64c59753e728 /src/pages/_app.jsx | |
| parent | 6df5d02fc2a82e9df901e4416e9a2d14f654438c (diff) | |
user activity
Diffstat (limited to 'src/pages/_app.jsx')
| -rw-r--r-- | src/pages/_app.jsx | 13 |
1 files changed, 2 insertions, 11 deletions
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() @@ -18,14 +17,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' > |
