fix modal width

This commit is contained in:
Rushikesh Tote 2022-08-10 14:21:25 +05:30
parent 1527f9fbad
commit 5d519e3a96

View file

@ -1,9 +1,9 @@
import { Dialog, styled } from '@mui/material'; import { Dialog, styled } from '@mui/material';
const DialogBoxBase = styled(Dialog)(({ theme }) => ({ const DialogBoxBase = styled(Dialog)(({ theme, maxWidth }) => ({
'& .MuiDialog-paper': { '& .MuiDialog-paper': {
padding: theme.spacing(1, 1.5), padding: theme.spacing(1, 1.5),
maxWidth: '346px', maxWidth: maxWidth ?? '346px',
}, },
'& .MuiDialogTitle-root': { '& .MuiDialogTitle-root': {
padding: theme.spacing(2), padding: theme.spacing(2),