default argument for page container spacing

This commit is contained in:
Carter 2025-06-23 10:07:17 -06:00
parent 2a020eb6e7
commit 179cbcf542

View file

@ -1,7 +1,7 @@
import { Container, SxProps, Theme } from "@mui/material";
import { makeStyles } from "@mui/styles";
import classNames from "classnames";
import { useMobile } from "hooks";
// import { useMobile } from "hooks";
import { PropsWithChildren } from "react";
const useStyles = makeStyles((theme: Theme) => ({
@ -44,11 +44,11 @@ interface Props extends PropsWithChildren{
export const PageContainer: React.FunctionComponent<Props> = (props: Props) => {
const classes = useStyles();
const isMobile = useMobile();
// const isMobile = useMobile();
const { children, fullViewport, isCenterCenter, sx } = props;
// let fullViewport = false
// let isCenterCenter = false
const spacing = props.spacing;
const spacing = props.spacing ? props.spacing : 2;
return (
<Container
className={classNames(