diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-25 09:15:27 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-25 09:15:27 +0700 |
| commit | c0b38013bb97a995148b14301d26996ef15d4c7a (patch) | |
| tree | 4e564ee0d9ab40bcb22a7ca6176e6a74041b63d5 /src/core/components/layouts | |
| parent | 4f3f76a484c19b983f70f91a6ebf9146f3aef22f (diff) | |
Disable user activity log
Diffstat (limited to 'src/core/components/layouts')
| -rw-r--r-- | src/core/components/layouts/BasicLayout.jsx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/core/components/layouts/BasicLayout.jsx b/src/core/components/layouts/BasicLayout.jsx index 2962a08b..13cdfc86 100644 --- a/src/core/components/layouts/BasicLayout.jsx +++ b/src/core/components/layouts/BasicLayout.jsx @@ -42,20 +42,20 @@ const BasicLayout = ({ children }) => { } }, [product, router]); - useEffect(() => { - const getIP = async () => { - const ip = await odooApi('GET', '/api/ip-address'); - const data = { - page_title: document.title, - url: window.location.href, - ip: ip, - }; - axios.get( - `/api/user-activity?page_title=${data.page_title}&url=${data.url}&ip=${data.ip}` - ); - }; - getIP(); - }, []); + // useEffect(() => { + // const getIP = async () => { + // const ip = await odooApi('GET', '/api/ip-address'); + // const data = { + // page_title: document.title, + // url: window.location.href, + // ip: ip, + // }; + // axios.get( + // `/api/user-activity?page_title=${data.page_title}&url=${data.url}&ip=${data.ip}` + // ); + // }; + // getIP(); + // }, []); return ( <> <Navbar /> |
