diff --git a/src/Components/Notifications.js b/src/Components/Notifications.js index 03f16486b99a2b9efdd96b6def38d08c97f507b4..45af4b5fb90a7d7b62598fe0a7ace6e5a1559e78 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`