Make styling!!

This commit is contained in:
J Francisco Rader committed 2020-08-22 17:20:44 -03:00
1 parent 0bbd463c01
commit bc20bfac99
13 files changed
+115 -114

No files matched your search

+14 -14
View File
@@ -1,5 +1,5 @@
import React from "react";
import { Box, makeStyles, Backdrop } from "@material-ui/core";
import { Box, makeStyles, Backdrop, Paper } from "@material-ui/core";
const useStyles = makeStyles((theme) => ({
box: {
@@ -10,6 +10,10 @@ const useStyles = makeStyles((theme) => ({
position: "absolute",
zIndex: 1,
},
paper: {
width: "100%",
height: "100%",
},
}));
export const AppContent = ({
@@ -21,19 +25,15 @@ export const AppContent = ({
}) => {
const classes = useStyles();
return (
<Box
px={2}
pt={1}
flexGrow={1}
style={{ width: "100%", ...props }}
{...props}
>
<Backdrop
className={classes.backdrop}
open={backdrop}
onClick={onClickBackdrop}
></Backdrop>
{children}
<Box flexGrow={1} className={classes.box} {...props}>
<Paper square px={2} pt={1} elevation={0} className={classes.paper}>
<Backdrop
className={classes.backdrop}
open={backdrop || false}
onClick={onClickBackdrop}
></Backdrop>
{children}
</Paper>
</Box>
);
};