diff --git a/packages/cwrc-leafwriter/src/dialogs/editSource/Editor.tsx b/packages/cwrc-leafwriter/src/dialogs/editSource/__editor.tsx similarity index 100% rename from packages/cwrc-leafwriter/src/dialogs/editSource/Editor.tsx rename to packages/cwrc-leafwriter/src/dialogs/editSource/__editor.tsx diff --git a/packages/cwrc-leafwriter/src/dialogs/editSource/index.tsx b/packages/cwrc-leafwriter/src/dialogs/editSource/index.tsx index 18865743c33e18020b41bab859d10b0139f9a254..25013e6b84ec7d0edf1dcda0c096c5037d33c164 100644 --- a/packages/cwrc-leafwriter/src/dialogs/editSource/index.tsx +++ b/packages/cwrc-leafwriter/src/dialogs/editSource/index.tsx @@ -1,15 +1,14 @@ import { Dialog, DialogContent, DialogTitle } from '@mui/material'; import { Provider } from 'jotai'; -import { Suspense } from 'react'; +import { Suspense, lazy } from 'react'; import { useTranslation } from 'react-i18next'; import { useAppState } from '../../overmind'; import type { EditSourceDialogProps } from '../type'; import { Footer } from './components/footer'; import { Loader } from './components/loader'; -import { Editor } from './editor'; import { useDialog } from './hooks/useDialog'; -// const Editor = lazy(() => import('./editor').then((module) => ({ default: module.Editor }))); +const Editor = lazy(() => import('./__editor').then((module) => ({ default: module.Editor }))); export const EditSourceDialog = ({ content = '',