mirror of
https://github.com/cheveguerra/Whaticket.git
synced 2026-04-18 03:29:14 +00:00
Initial commit
This commit is contained in:
33
frontend/src/components/MainContainer/index.js
Normal file
33
frontend/src/components/MainContainer/index.js
Normal file
@@ -0,0 +1,33 @@
|
||||
import React from "react";
|
||||
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import Container from "@material-ui/core/Container";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
mainContainer: {
|
||||
flex: 1,
|
||||
// padding: theme.spacing(2),
|
||||
// height: `calc(100% - 48px)`,
|
||||
padding: 0,
|
||||
height: "100%",
|
||||
},
|
||||
|
||||
contentWrapper: {
|
||||
height: "100%",
|
||||
overflowY: "hidden",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
},
|
||||
}));
|
||||
|
||||
const MainContainer = ({ children }) => {
|
||||
const classes = useStyles();
|
||||
|
||||
return (
|
||||
<Container className={classes.mainContainer} maxWidth={false}>
|
||||
<div className={classes.contentWrapper}>{children}</div>
|
||||
</Container>
|
||||
);
|
||||
};
|
||||
|
||||
export default MainContainer;
|
||||
Reference in New Issue
Block a user