diff --git a/src/components/modals/Modals.jsx b/src/components/modals/Modals.jsx index 0c106036..d5ae60e8 100644 --- a/src/components/modals/Modals.jsx +++ b/src/components/modals/Modals.jsx @@ -5,7 +5,8 @@ import Navbar from '../widgets/navbar/Navbar'; import Modal from 'react-modal'; -// Modals are lazy loaded as the user won't use them every time they open a tab +// These modals are lazy loaded as the user won't use them every time they open a tab +// We used to lazy load the main modal, but doing so broke the main modal open animation on first click const Welcome = React.lazy(() => import('./welcome/Welcome')); const Feedback = React.lazy(() => import('./feedback/Feedback')); const renderLoader = () => <>; diff --git a/src/components/modals/main/Main.jsx b/src/components/modals/main/Main.jsx index f326ef30..7f5aab18 100644 --- a/src/components/modals/main/Main.jsx +++ b/src/components/modals/main/Main.jsx @@ -4,6 +4,7 @@ import Tabs from './tabs/backend/Tabs'; import './scss/index.scss'; +// Lazy load all the tabs instead of the modal itself const Settings = React.lazy(() => import('./tabs/Settings')); const Addons = React.lazy(() => import('./tabs/Addons')); const Marketplace = React.lazy(() => import('./tabs/Marketplace')); diff --git a/src/components/modals/main/marketplace/Item.jsx b/src/components/modals/main/marketplace/Item.jsx index 21eea538..d45267f2 100644 --- a/src/components/modals/main/marketplace/Item.jsx +++ b/src/components/modals/main/marketplace/Item.jsx @@ -39,7 +39,7 @@ export default function Item(props) { product

{language.overview}

-

+