We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d16e206 + 759897f commit 7424585Copy full SHA for 7424585
src/custom/Modal/index.tsx
@@ -49,8 +49,6 @@ const CloseBtn = styled(IconButton)`
49
const StyledDialog = styled(Dialog)`
50
&& {
51
.MuiDialog-paper {
52
- width: auto;
53
- max-width: 100%;
54
border-radius: 0.5rem;
55
}
56
@@ -128,10 +126,13 @@ export const Modal: React.FC<ModalProps> = ({
128
126
headerIcon,
129
127
reactNode,
130
children,
+ maxWidth = 'xs',
131
...props
132
}) => {
133
return (
134
<StyledDialog
+ fullWidth={true}
135
+ maxWidth={maxWidth}
136
open={open}
137
onClose={closeModal}
138
aria-labelledby="alert-dialog-slide-title"
0 commit comments