mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Remove lazy loading for editor
This commit is contained in:
parent
62de3c0d71
commit
1f7f84dcca
@ -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' {
|
||||||
|
@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user