diff --git a/src/Components/Notifications.js b/src/Components/Notifications.js index 069b9770f95df55164bd7773cbba3fb4521eb3df..75ec4d5fec05b26b458375ad22437bd87ade6bc5 100644 --- a/src/Components/Notifications.js +++ b/src/Components/Notifications.js @@ -15,12 +15,11 @@ GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>.*/ -import React, {useContext} from 'react'; +import React from 'react'; import NotificationsIcon from '@material-ui/icons/Notifications'; import { Button } from '@material-ui/core'; import Badge from '@material-ui/core/Badge'; import styled from 'styled-components' -import Dropdown from './Dropdown'; const StyledBadge = styled(Badge) ` .MuiBadge-dot-45{ @@ -46,8 +45,7 @@ const StyledNotificationButton = styled(Button)` } ` -export default function Notification (props) { - +function NotificationButton () { return ( <StyledNotificationButton> <StyledBadge badgeContent="1" color="secondary" variant="dot" overlap="circle" classname="badge"> @@ -55,5 +53,13 @@ export default function Notification (props) { </StyledBadge> </StyledNotificationButton> ) +} + +export default function Notification (props) { + + return ( + <NotificationButton> + </NotificationButton> + ) } diff --git a/src/Components/ResourcePageComponents/Sobre.js b/src/Components/ResourcePageComponents/Sobre.js index 8216e930831263b833e262255ec130fa1d66ef9f..f2af917523dcdbd742f3d998c0ee92389d4e2ff2 100644 --- a/src/Components/ResourcePageComponents/Sobre.js +++ b/src/Components/ResourcePageComponents/Sobre.js @@ -103,7 +103,7 @@ export default function Sobre (props) { value={ <div className="license-link"> <a href={props.license.url}> - <img src={License}/> + <img src={License} alt="license"/> </a> <p> {props.license.name}<br/>4.0 Internacional @@ -142,7 +142,7 @@ export default function Sobre (props) { <div className="tags-container"> { props.tags.map( (tag) => - <span key={tag.id}>{tag.name}</span> + <span key={tag.name}>{tag.name}</span> ) } </div> @@ -176,7 +176,7 @@ export default function Sobre (props) { <div className="foto-autor"> <Link to={"/usuario-publico/" + props.id}> - <img src={props.avatar}/> + <img src={props.avatar} alt="user avatar"/> </Link> </div> diff --git a/src/Components/TabPanels/UserPageTabs/PanelMeusRecursos.js b/src/Components/TabPanels/UserPageTabs/PanelMeusRecursos.js index 76694ffc904dfd6c1da3664f57a2f196ef0bcdf9..3d9c93d09707c27216f21b79fefc1ba8567b7d48 100644 --- a/src/Components/TabPanels/UserPageTabs/PanelMeusRecursos.js +++ b/src/Components/TabPanels/UserPageTabs/PanelMeusRecursos.js @@ -99,7 +99,7 @@ export default function TabPanelAtividades (props) { <React.Fragment> <Template length = {learningObjects.length} - titleText = {learningObjects.length == 1 ? "Recurso Publicado" : "Recursos Publicados"} + titleText = {learningObjects.length === 1 ? "Recurso Publicado" : "Recursos Publicados"} noContentText={"Você ainda não publicou nenhum Recurso!"} slice={learningObjectsSlice} showMore={showMoreLearnObj} @@ -108,7 +108,7 @@ export default function TabPanelAtividades (props) { <Template length = {drafts.length} - titleText = {drafts.length == 1 ? "Rascunho Publicado" : "Rascunhos Publicados"} + titleText = {drafts.length === 1 ? "Rascunho Publicado" : "Rascunhos Publicados"} noContentText={"Você não tem nenhum recurso sendo editado."} slice={draftsSlice} showMore={showMoreDrafts} diff --git a/src/Components/UserPageComponents/EditProfileButton.js b/src/Components/UserPageComponents/EditProfileButton.js index 646066389ca2ad65d4782dd3c785be285a2744d7..4df7df2c7a5a6b4794ca5fd926d7440c77cc3ec1 100644 --- a/src/Components/UserPageComponents/EditProfileButton.js +++ b/src/Components/UserPageComponents/EditProfileButton.js @@ -15,7 +15,7 @@ GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>.*/ -import React, {useContext} from 'react'; +import React from 'react'; import { Store } from '../../Store.js'; import styled from 'styled-components' import {Link} from 'react-router-dom';