From b32cca715c4a66527ef5d6171ef13b21374fe49f Mon Sep 17 00:00:00 2001
From: Luciano Frizzera <lucaju@me.com>
Date: Tue, 9 Apr 2024 23:28:44 -0400
Subject: [PATCH] =?UTF-8?q?chore(leafwriter):=20=F0=9F=A4=96=20remame=20fi?=
 =?UTF-8?q?le?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../src/dialogs/editSource/{Editor.tsx => __editor.tsx}      | 0
 packages/cwrc-leafwriter/src/dialogs/editSource/index.tsx    | 5 ++---
 2 files changed, 2 insertions(+), 3 deletions(-)
 rename packages/cwrc-leafwriter/src/dialogs/editSource/{Editor.tsx => __editor.tsx} (100%)

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 18865743..25013e6b 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 = '',
-- 
GitLab