Skip to content
Snippets Groups Projects
Commit 6de26b0f authored by Lucas Eduardo Schoenfelder's avatar Lucas Eduardo Schoenfelder
Browse files

fix to several console log errors

parent b61f124d
No related branches found
No related tags found
3 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!24Tela recurso
......@@ -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>
)
}
......@@ -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>
......
......@@ -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}
......
......@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment