From 1be21492a351b2cf5ba51c92259bbdb59e0e2421 Mon Sep 17 00:00:00 2001 From: CrisGrud Date: Wed, 30 Aug 2023 11:46:18 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20[Modal]=20Fixed=20respons?= =?UTF-8?q?ive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE: 🧨 Fixed responsive flag, passign false modal remains of passed size --- src/components/Modal/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Modal/index.tsx b/src/components/Modal/index.tsx index e50cb460..b119ba21 100644 --- a/src/components/Modal/index.tsx +++ b/src/components/Modal/index.tsx @@ -47,7 +47,7 @@ const Modal: FC> = ({ dataCy = DATA_CY_DEFAULT, onClose: externalOnClose, open = false, - responsive = false, + responsive = true, size = "md", title = "", }) => { @@ -69,7 +69,7 @@ const Modal: FC> = ({ ); const viewOptions: IModalViewOptions = useMemo(() => { - if (responsive) { + if (!responsive) { return { fullScreen: size === "xl", maxWidth: size,