Revert "Remove lazy loading for editor"

This reverts commit 1f7f84dcca.
This commit is contained in:
Paulo Gustavo Veiga 2022-11-16 18:32:33 -08:00
parent e28e68015f
commit 0cac062249
2 changed files with 3 additions and 3 deletions

View File

@ -16,8 +16,8 @@ import ReactGA from 'react-ga4';
import AppConfig from './classes/app-config'; import AppConfig from './classes/app-config';
import withSessionExpirationHandling from './components/HOCs/withSessionExpirationHandling'; import withSessionExpirationHandling from './components/HOCs/withSessionExpirationHandling';
import RegistrationSuccessPage from './components/registration-success-page'; import RegistrationSuccessPage from './components/registration-success-page';
import EditorPage from './components/editor-page';
const EditorPage = React.lazy(() => import('./components/editor-page'));
const MapsPage = React.lazy(() => import('./components/maps-page')); const MapsPage = React.lazy(() => import('./components/maps-page'));
declare module '@mui/styles/defaultTheme' { declare module '@mui/styles/defaultTheme' {

View File

@ -12,7 +12,7 @@ import InfoDialog from './info-dialog';
import DeleteMultiselectDialog from './delete-multiselect-dialog'; import DeleteMultiselectDialog from './delete-multiselect-dialog';
import ExportDialog from './export-dialog'; import ExportDialog from './export-dialog';
import ShareDialog from './share-dialog'; import ShareDialog from './share-dialog';
// import LabelDialog from './label-dialog'; import LabelDialog from './label-dialog';
import ReactGA from 'react-ga4'; import ReactGA from 'react-ga4';
export type BasicMapInfo = { export type BasicMapInfo = {
@ -76,7 +76,7 @@ const ActionDispatcher = ({
<ExportDialog onClose={handleOnClose} mapId={mapsId[0]} enableImgExport={fromEditor} /> <ExportDialog onClose={handleOnClose} mapId={mapsId[0]} enableImgExport={fromEditor} />
)} )}
{action === 'share' && <ShareDialog onClose={handleOnClose} mapId={mapsId[0]} />} {action === 'share' && <ShareDialog onClose={handleOnClose} mapId={mapsId[0]} />}
{/* {action === 'label' && <LabelDialog onClose={handleOnClose} mapsId={mapsId} />} */} {action === 'label' && <LabelDialog onClose={handleOnClose} mapsId={mapsId} />}
</span> </span>
); );
}; };