From 0cac062249f14cefb2f06e4432958216fe6e1e10 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Wed, 16 Nov 2022 18:32:33 -0800 Subject: [PATCH] Revert "Remove lazy loading for editor" This reverts commit 1f7f84dccaa548279a2b4a24e4fe33aeb12d28c3. --- packages/webapp/src/app.tsx | 2 +- .../src/components/maps-page/action-dispatcher/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/webapp/src/app.tsx b/packages/webapp/src/app.tsx index 261f3cc1..a84e6e7b 100644 --- a/packages/webapp/src/app.tsx +++ b/packages/webapp/src/app.tsx @@ -16,8 +16,8 @@ import ReactGA from 'react-ga4'; import AppConfig from './classes/app-config'; import withSessionExpirationHandling from './components/HOCs/withSessionExpirationHandling'; 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')); declare module '@mui/styles/defaultTheme' { diff --git a/packages/webapp/src/components/maps-page/action-dispatcher/index.tsx b/packages/webapp/src/components/maps-page/action-dispatcher/index.tsx index cc82f52f..5e00a6ec 100644 --- a/packages/webapp/src/components/maps-page/action-dispatcher/index.tsx +++ b/packages/webapp/src/components/maps-page/action-dispatcher/index.tsx @@ -12,7 +12,7 @@ import InfoDialog from './info-dialog'; import DeleteMultiselectDialog from './delete-multiselect-dialog'; import ExportDialog from './export-dialog'; import ShareDialog from './share-dialog'; -// import LabelDialog from './label-dialog'; +import LabelDialog from './label-dialog'; import ReactGA from 'react-ga4'; export type BasicMapInfo = { @@ -76,7 +76,7 @@ const ActionDispatcher = ({ )} {action === 'share' && } - {/* {action === 'label' && } */} + {action === 'label' && } ); };