listing devices and linking them to their respoective page
This commit is contained in:
parent
03f8ed20ca
commit
84d06d9783
7 changed files with 119 additions and 27 deletions
|
|
@ -38,11 +38,12 @@ interface Props extends PropsWithChildren{
|
|||
fullViewport?: boolean;
|
||||
isCenterCenter?: boolean;
|
||||
sx?: SxProps<Theme>;
|
||||
padding?: number;
|
||||
}
|
||||
|
||||
export const PageContainer: React.FunctionComponent<Props> = props => {
|
||||
const classes = useStyles();
|
||||
const { children, fullViewport, isCenterCenter, sx } = props;
|
||||
const { children, fullViewport, isCenterCenter, sx, padding } = props;
|
||||
// let fullViewport = false
|
||||
// let isCenterCenter = false
|
||||
return (
|
||||
|
|
@ -51,7 +52,10 @@ export const PageContainer: React.FunctionComponent<Props> = props => {
|
|||
fullViewport ? classes.fullViewportContainer : classes.pageContainer,
|
||||
isCenterCenter && classes.centerCenter
|
||||
)}
|
||||
sx={sx}
|
||||
sx={{
|
||||
...sx, // Spread existing sx
|
||||
...(padding !== undefined && { padding }), // Conditionally add padding
|
||||
}}
|
||||
disableGutters
|
||||
maxWidth={false}
|
||||
children={<React.Fragment>{children}</React.Fragment>}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue