We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2b318 commit 9295636Copy full SHA for 9295636
frontend/family_tree/src/Components/ProfileCard.js
@@ -44,14 +44,17 @@ const useStyles = makeStyles((theme) => ({
44
45
function PCard(props) {
46
const classes = useStyles();
47
+ const [display, setDisplay] = React.useState("");
48
49
return (
50
<React.Fragment>
- <Card className={classes.root} variant="outlined">
51
+ <Card className={classes.root} variant="outlined" style={{display:display}}>
52
<Box sx={{ display: "flex", justifyContent: "right" }}>
- <IconButton aria-label="close">
53
+ <CardActions>
54
+ <IconButton aria-label="close" onClick={()=>setDisplay("none")} >
55
<CloseOutlinedIcon />
56
</IconButton>
57
+ </CardActions>
58
</Box>
59
<Box
60
sx={{
0 commit comments