fix: improvements to feedback modal

This commit is contained in:
David Ralph
2021-08-05 17:25:46 +01:00
parent 6cdfb9db3e
commit eefc594ec1
3 changed files with 13 additions and 8 deletions

View File

@@ -3,14 +3,14 @@ import React from 'react';
import EventBus from '../../modules/helpers/eventbus';
import Main from './main/Main';
import Feedback from './feedback/Feedback';
import Navbar from '../widgets/navbar/Navbar';
import Modal from 'react-modal';
// 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
// Welcome modal is lazy loaded as the user won't use it every time they open a tab
// We used to lazy load the main and feedback modals, but doing so broke the modal open animation on first click
const Welcome = React.lazy(() => import('./welcome/Welcome'));
const Feedback = React.lazy(() => import('./feedback/Feedback'));
const renderLoader = () => <></>;
export default class Modals extends React.PureComponent {