Skip to content
Snippets Groups Projects
Commit 79160cb1 authored by lfr20's avatar lfr20
Browse files

Removed unecessary functionss

parent fbac86d9
Branches
Tags
6 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!32Homologa,!31Fix console error,!28Training materials
...@@ -28,14 +28,15 @@ import Grid from '@material-ui/core/Grid'; ...@@ -28,14 +28,15 @@ import Grid from '@material-ui/core/Grid';
import styled from 'styled-components'; import styled from 'styled-components';
import Button from '@material-ui/core/Button'; import Button from '@material-ui/core/Button';
import ExpandMoreRoundedIcon from '@material-ui/icons/ExpandMoreRounded'; import ExpandMoreRoundedIcon from '@material-ui/icons/ExpandMoreRounded';
import ExpandLessRoundedIcon from '@material-ui/icons/ExpandLessRounded';
export default function MaterialCard(props) { export default function MaterialCard(props) {
const [expanded, setExpanded] = useState(false);
const thumb = require(`../../public/${props.thumb}`) const thumb = require(`../../public/${props.thumb}`)
const HandleButtonPressed = () => {
props.handleExpand(props.id);
}
return ( return (
<Card> <Card>
<img src={thumb} alt="thumbnail do recurso" /> <img src={thumb} alt="thumbnail do recurso" />
...@@ -68,8 +69,8 @@ export default function MaterialCard(props) { ...@@ -68,8 +69,8 @@ export default function MaterialCard(props) {
<CardActions style={{ borderTop: "1px solid #e5e5e5", justifyContent: "center" }}> <CardActions style={{ borderTop: "1px solid #e5e5e5", justifyContent: "center" }}>
<Button <Button
color="secondary" color="secondary"
endIcon={expanded ? <ExpandLessRoundedIcon/> : <ExpandMoreRoundedIcon/>} endIcon={<ExpandMoreRoundedIcon/>}
onClick={() => props.handleExpand(props.id)} onClick={HandleButtonPressed}
> >
Ver módulos Ver módulos
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment