diff --git a/web/src/components/layout/modal.tsx b/web/src/components/layout/modal.tsx index 6b8d5cc..afaee16 100644 --- a/web/src/components/layout/modal.tsx +++ b/web/src/components/layout/modal.tsx @@ -41,48 +41,55 @@ const Modal: React.FC = ({ onChange?.(false); }; - return createPortal( -
- - - -
- {title} - - -
+
+ {title} + + +
-
{children}
+
{children}
-
- {t('close')} -
-
-
, - document.getElementById('modal-root')! + + + , + document.getElementById('modal-root')!, + )} + ); }; diff --git a/web/yarn.lock b/web/yarn.lock index 1ed7f4c..876b833 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -1770,14 +1770,9 @@ camelcase-css@^2.0.1: resolved "https://registry.yarnpkg.com/camelcase-css/-/camelcase-css-2.0.1.tgz#ee978f6947914cc30c6b44741b6ed1df7f043fd5" integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA== -caniuse-lite@^1.0.30001406, caniuse-lite@^1.0.30001449: - version "1.0.30001478" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001478.tgz#0ef8a1cf8b16be47a0f9fc4ecfc952232724b32a" - integrity sha512-gMhDyXGItTHipJj2ApIvR+iVB5hd0KP3svMWWXDvZOmjzJJassGLMfxRkQCSYgGd2gtdL/ReeiyvMSFD1Ss6Mw== - -caniuse-lite@^1.0.30001538, caniuse-lite@^1.0.30001541: +caniuse-lite@^1.0.30001406, caniuse-lite@^1.0.30001449, caniuse-lite@^1.0.30001538, caniuse-lite@^1.0.30001541: version "1.0.30001559" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001559.tgz#95a982440d3d314c471db68d02664fb7536c5a30" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001559.tgz" integrity sha512-cPiMKZgqgkg5LY3/ntGeLFUpi6tzddBNS58A4tnTgQw1zON7u2sZMU7SzOeVH4tj20++9ggL+V6FDOFMTaFFYA== chalk@^2.0.0: