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

Passed a prop called component, to display the edit section it the user wants to edit something

parent 34d9ab3a
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...,!40merge admin into develop,!37Merge sistema_admin into Update_Admin_System
......@@ -63,11 +63,6 @@ const DataCard = (props) => {
setEdit(!edit);
};
//Function that verify if everything is correct before saving the changes
const saveHandler = () => {
}
// it stores an function that will be called when a button is clicked
const functionArr = [props.viewData, EditHandler];
......@@ -102,12 +97,6 @@ const DataCard = (props) => {
{props.component}
</CardContent>
<CardActions>
<Button size="small" className={classes.displayRow} onClick={saveHandler}>
<SaveIcon style={{ fill: "#6959CD" }} />
Salvar
</Button>
</CardActions>
</Card>
:
<Card className={classes.root} variant="outlined">
......
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