mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
working typescript version
This commit is contained in:
1 parent
581d6011e0
commit
cff746aa38
119 files changed
+247
-189
No files matched your search
@@ -0,0 +1,47 @@
|
||||
import React from "react";
|
||||
import { Box, makeStyles, Backdrop, Paper } from "@material-ui/core";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
wrapper: {
|
||||
height: "67vh",
|
||||
overflow: "auto",
|
||||
},
|
||||
box: {
|
||||
width: "100%",
|
||||
height: "100%", // allow application to fill entireity of space
|
||||
position: "relative",
|
||||
overflow: "auto",
|
||||
},
|
||||
backdrop: {
|
||||
position: "absolute",
|
||||
zIndex: 1,
|
||||
},
|
||||
paper: {
|
||||
width: "100%",
|
||||
height: "100%", // allow application to fill entireity of space
|
||||
},
|
||||
}));
|
||||
|
||||
export const AppContent = ({
|
||||
children,
|
||||
style,
|
||||
backdrop,
|
||||
onClickBackdrop,
|
||||
...props
|
||||
}) => {
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<Paper className={classes.wrapper}>
|
||||
<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>
|
||||
</Paper>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user