From ed9227066db405865e41ebc0761e103e567e9616 Mon Sep 17 00:00:00 2001 From: Lucas Schoenfelder <les17@inf.ufpr.br> Date: Tue, 9 Feb 2021 19:44:16 -0300 Subject: [PATCH] removed unnecessary comment lines --- .../HelperFunctions/getAxiosConfig.js | 6 ---- src/Components/ResourceCardFunction.js | 28 ++++--------------- .../PanelComponents/TemplateRecurso.js | 6 +--- 3 files changed, 6 insertions(+), 34 deletions(-) diff --git a/src/Components/HelperFunctions/getAxiosConfig.js b/src/Components/HelperFunctions/getAxiosConfig.js index 7841d441..dbd2ca26 100644 --- a/src/Components/HelperFunctions/getAxiosConfig.js +++ b/src/Components/HelperFunctions/getAxiosConfig.js @@ -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')) } } diff --git a/src/Components/ResourceCardFunction.js b/src/Components/ResourceCardFunction.js index 08d07b61..47766345 100644 --- a/src/Components/ResourceCardFunction.js +++ b/src/Components/ResourceCardFunction.js @@ -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` diff --git a/src/Components/TabPanels/PanelComponents/TemplateRecurso.js b/src/Components/TabPanels/PanelComponents/TemplateRecurso.js index 7fe23657..127d242f 100644 --- a/src/Components/TabPanels/PanelComponents/TemplateRecurso.js +++ b/src/Components/TabPanels/PanelComponents/TemplateRecurso.js @@ -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> - ] ) } -- GitLab