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

removed unnecessary comment lines

parent 710deab6
No related branches found
No related tags found
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!35Fix remaining bugs
......@@ -92,7 +92,6 @@ export const getRequest = (url, onSuccess, onError) => {
})
})
.then(data => {
console.log(data)
onSuccess(data)
})
.catch(error => {
......@@ -114,7 +113,6 @@ export const deleteRequest = (url, onSuccess, onError) => {
})
})
.then(data => {
console.log(data)
onSuccess(data)
})
.catch(error => {
......@@ -145,7 +143,6 @@ export const putRequest = (url, payload, onSuccess, onError) => {
})
})
.then(data => {
console.log(data)
onSuccess(data)
})
.catch(error => {
......@@ -176,7 +173,6 @@ export const postRequest = (url, payload, onSuccess, onError) => {
})
})
.then(data => {
console.log(data)
onSuccess(data)
})
.catch(error => {
......@@ -189,9 +185,7 @@ export const fetchAllRequest = (urls, onSuccess, onError) => {
headers : fetchHeaders()
}))).then( (responses) => {
for(let res of responses) {
console.log(res)
if (res.headers.has('access-token') && res.status !== 304) {
console.log(res)
updateAccessToken(res.headers.get('access-token'))
}
}
......
......@@ -21,28 +21,10 @@ import Card from '@material-ui/core/Card';
import {apiDomain} from '../env';
import ResourceCardOptions from './ResourceCardOptions'
import noAvatar from "../img/default_profile.png";
// import { makeStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import styled from 'styled-components'
// import animacao from "../img/laranja/ANIMACAO_SIMULACAO.jpg";
// import apresentacao from "../img/laranja/APRESENTACAO.jpg";
// import aplicativo from "../img/laranja/APP.jpg";
// import audio from "../img/laranja/AUDIO.jpg";
// import vazio from "../img/laranja/EMPTY.jpg";
// import imagem from "../img/laranja/IMAGEM.jpg";
// import grafico from "../img/laranja/INFOGRAFICO.jpg";
// import jogo from "../img/laranja/JOGO.jpg";
// import livro from "../img/laranja/LIVRO_DIGITAL.jpg";
// import mapa from "../img/laranja/MAPA.jpg";
// import outros from "../img/laranja/OUTROS.jpg";
// import software from "../img/laranja/SOFTWARE.jpg";
// import texto from "../img/laranja/TEXTO.jpg";
// import video from "../img/laranja/VIDEO.jpg";
import Rating from '@material-ui/lab/Rating';
import StarBorderIcon from '@material-ui/icons/StarBorder';
// import AddIcon from '@material-ui/icons/CreateNewFolder';
// import Video from '@material-ui/icons/OndemandVideo';
// import MoreIcon from '@material-ui/icons/More';
import FavoriteIcon from '@material-ui/icons/Favorite';
import ButtonGuardarColecao from './ButtonGuardarColecao.js'
import Slide from '@material-ui/core/Slide';
......@@ -108,7 +90,7 @@ export default function ResourceCardFunction(props) {
</HeaderContainer>
<TagContainer container direction="row">
{
props.tags.map((tag) =>
props.tags && props.tags.map((tag) =>
<Grid item key={tag.id}>
<span >{tag.name}</span>
</Grid>
......@@ -206,9 +188,9 @@ export const TagContainer = styled(Grid)`
span {
word-wrap: break-word;
background-color : #fff;
display : flex;
justify-content : center;
align-items : center;
display : flex;
justify-content : center;
align-items : center;
height : 22px;
tet-align : center;
margin: 3px;
......@@ -329,7 +311,7 @@ export const Footer = styled.div`
display : flex;
flex-direction : row;
justify-content : space-between;
margin-top : 5px;
margin-top : 5px;
`
const Description = styled.div`
......
......@@ -35,13 +35,10 @@ export default function Template(props) {
{
props.length === 0 ?
(
[
<NoContent text={props.noContentText} />
]
<NoContent text={props.noContentText} />
)
:
(
[
<React.Fragment>
<StyledGrid container spacing={1} style={{ paddingLeft: "30px", paddingRight: "15px" }}>
{
......@@ -75,7 +72,6 @@ export default function Template(props) {
showAll={() => props.showAll()}
/>
</React.Fragment>
]
)
}
......
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