Skip to content

Commit

Permalink
fix: 🐛 [Modal] Fixed responsive
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 🧨 Fixed responsive flag, passign false modal remains of passed size
  • Loading branch information
CrisGrud committed Aug 30, 2023
1 parent e2d5cb7 commit 1be2149
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Modal: FC<PropsWithChildren<IModal>> = ({
dataCy = DATA_CY_DEFAULT,
onClose: externalOnClose,
open = false,
responsive = false,
responsive = true,
size = "md",
title = "",
}) => {
Expand All @@ -69,7 +69,7 @@ const Modal: FC<PropsWithChildren<IModal>> = ({
);

const viewOptions: IModalViewOptions = useMemo(() => {
if (responsive) {
if (!responsive) {
return {
fullScreen: size === "xl",
maxWidth: size,
Expand Down

0 comments on commit 1be2149

Please sign in to comment.