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

Removed unecessary functionss

parent fbac86d9
No related branches found
No related tags found
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';
import styled from 'styled-components';
import Button from '@material-ui/core/Button';
import ExpandMoreRoundedIcon from '@material-ui/icons/ExpandMoreRounded';
import ExpandLessRoundedIcon from '@material-ui/icons/ExpandLessRounded';
export default function MaterialCard(props) {
const [expanded, setExpanded] = useState(false);
const thumb = require(`../../public/${props.thumb}`)
const HandleButtonPressed = () => {
props.handleExpand(props.id);
}
return (
<Card>
<img src={thumb} alt="thumbnail do recurso" />
......@@ -68,11 +69,11 @@ export default function MaterialCard(props) {
<CardActions style={{ borderTop: "1px solid #e5e5e5", justifyContent: "center" }}>
<Button
color="secondary"
endIcon={expanded ? <ExpandLessRoundedIcon/> : <ExpandMoreRoundedIcon/>}
onClick={() => props.handleExpand(props.id)}
endIcon={<ExpandMoreRoundedIcon/>}
onClick={HandleButtonPressed}
>
Ver módulos
Ver módulos
</Button>
</CardActions>
</Card >
......
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