mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
Make styling!!
This commit is contained in:
1 parent
0bbd463c01
commit
bc20bfac99
13 files changed
+115
-114
No files matched your search
@@ -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>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user