From e1f36af4b42419d1409be6fc7c7a36a59c695cfe Mon Sep 17 00:00:00 2001
From: Lucas Schoenfelder <les17@inf.ufpr.br>
Date: Thu, 29 Oct 2020 12:08:22 -0300
Subject: [PATCH] wip

---
 src/Components/Notifications.js | 38 ++++++++++++++++-----------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/src/Components/Notifications.js b/src/Components/Notifications.js
index 03f16486..45af4b5f 100644
--- a/src/Components/Notifications.js
+++ b/src/Components/Notifications.js
@@ -59,24 +59,24 @@ export default function Notification (props) {
     const [anchorEl, setAnchorEl] = React.useState(null);
     const [notifications, setNotifications] = useState([]);
     const [notificatonsLength, setLength] = useState(0);
-    useEffect(() => {
-        let config = getAxiosConfig()
-        axios.get(`${apiUrl}/feed?offset=0&limit=30`, config)
-        .then( (response) => {
-                if ( response.headers['access-token'] ) {
-                    sessionStorage.setItem('@portalmec/accessToken', response.headers['access-token'])
-                }
-
-                console.log('atividades response: ', response)
-                setNotifications(response.data)
-                setLength(response.data.length)
-
-            },
-            (error) => {
-                console.log('error while running getNotifications')
-            }
-        )
-    }, [])
+    // useEffect(() => {
+    //     let config = getAxiosConfig()
+    //     axios.get(`${apiUrl}/feed?offset=0&limit=30`, config)
+    //     .then( (response) => {
+    //             if ( response.headers['access-token'] ) {
+    //                 sessionStorage.setItem('@portalmec/accessToken', response.headers['access-token'])
+    //             }
+    //
+    //             console.log('atividades response: ', response)
+    //             setNotifications(response.data)
+    //             setLength(response.data.length)
+    //
+    //         },
+    //         (error) => {
+    //             console.log('error while running getNotifications')
+    //         }
+    //     )
+    // }, [])
     function handleClick(event) {
         setAnchorEl(event.currentTarget);
     }
@@ -126,7 +126,7 @@ export default function Notification (props) {
 }
 
 const StyledMenu = styled(Menu)`
-    
+
 `
 
 const ContainerDiv = styled.div`
-- 
GitLab