mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
Context Menu!!!
This commit is contained in:
1 parent
b40d00a260
commit
ee560e1984
9 files changed
+115
-10
No files matched your search
@@ -1,10 +1,39 @@
|
||||
import React from "react";
|
||||
import { Box } from "@material-ui/core";
|
||||
import { Box, makeStyles, Backdrop } from "@material-ui/core";
|
||||
|
||||
export const AppContent = ({ children, style, ...props }) => {
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
box: {
|
||||
width: "100%",
|
||||
position: "relative",
|
||||
},
|
||||
backdrop: {
|
||||
position: "absolute",
|
||||
zIndex: 1,
|
||||
},
|
||||
}));
|
||||
|
||||
export const AppContent = ({
|
||||
children,
|
||||
style,
|
||||
backdrop,
|
||||
onClickBackdrop,
|
||||
...props
|
||||
}) => {
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<Box px={2} pt={1} style={{ width: '100%', ...props }} {...props}>
|
||||
{children}
|
||||
<Box
|
||||
px={2}
|
||||
pt={1}
|
||||
flexGrow={1}
|
||||
style={{ width: "100%", ...props }}
|
||||
{...props}
|
||||
>
|
||||
<Backdrop
|
||||
className={classes.backdrop}
|
||||
open={backdrop}
|
||||
onClick={onClickBackdrop}
|
||||
></Backdrop>
|
||||
{children}
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user