refactor: add opacity to paper component

main
Josue 4 years ago committed by Tsu-ba-me
parent c4daab3287
commit 5e066070e9
  1. 9
      striker-ui/components/Panel.tsx

@ -16,21 +16,24 @@ const useStyles = makeStyles(() => ({
borderStyle: 'solid', borderStyle: 'solid',
borderColor: TEXT, borderColor: TEXT,
}, },
paper: {
opacity: 0.7,
},
})); }));
const Panel = ({ children }: Props): JSX.Element => { const Panel = ({ children }: Props): JSX.Element => {
const classes = useStyles(); const classes = useStyles();
return ( return (
<Paper> <>
<Box display="flex" justifyContent="flex-start"> <Box display="flex" justifyContent="flex-start">
<Box className={classes.rectangle} /> <Box className={classes.rectangle} />
</Box> </Box>
{children} <Paper className={classes.paper}>{children}</Paper>
<Box display="flex" justifyContent="flex-end"> <Box display="flex" justifyContent="flex-end">
<Box className={classes.rectangle} /> <Box className={classes.rectangle} />
</Box> </Box>
</Paper> </>
); );
}; };

Loading…
Cancel
Save