From e721247c4c50ca6ce61aa3393ef0fd99f33e01e6 Mon Sep 17 00:00:00 2001
From: Luis Felipe Risch <lfr20@inf.ufpr.br>
Date: Thu, 15 Oct 2020 10:27:22 -0300
Subject: [PATCH] Passed a prop called component, to display the edit section
 it the user wants to edit something

---
 src/Admin/Components/Components/DataCard.js | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/Admin/Components/Components/DataCard.js b/src/Admin/Components/Components/DataCard.js
index d41deff3..ad60fc01 100644
--- a/src/Admin/Components/Components/DataCard.js
+++ b/src/Admin/Components/Components/DataCard.js
@@ -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">
-- 
GitLab