From 48eebbe2fee0ee8633972990cbe2f23fbbacbe61 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 10 Aug 2025 14:55:41 +0300 Subject: [PATCH] refactor(react/dialogs): don't render modals unless they are actually shown --- apps/client/src/widgets/react/Modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/react/Modal.tsx b/apps/client/src/widgets/react/Modal.tsx index 221236e8e..84f20a9b4 100644 --- a/apps/client/src/widgets/react/Modal.tsx +++ b/apps/client/src/widgets/react/Modal.tsx @@ -116,7 +116,7 @@ export default function Modal({ children, className, size, title, header, footer return (
-
+ {show &&
{!title || typeof title === "string" ? ( @@ -144,7 +144,7 @@ export default function Modal({ children, className, size, title, header, footer )}
-
+
}
); }