summaryrefslogtreecommitdiff
path: root/src/core/components
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2024-01-25 09:15:27 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2024-01-25 09:15:27 +0700
commitc0b38013bb97a995148b14301d26996ef15d4c7a (patch)
tree4e564ee0d9ab40bcb22a7ca6176e6a74041b63d5 /src/core/components
parent4f3f76a484c19b983f70f91a6ebf9146f3aef22f (diff)
Disable user activity log
Diffstat (limited to 'src/core/components')
-rw-r--r--src/core/components/layouts/BasicLayout.jsx28
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 />