diff --git a/apps/app/src/components/PageEditor/AbstractEditor.tsx b/apps/app/_obsolete/src/components/PageEditor/AbstractEditor.tsx similarity index 100% rename from apps/app/src/components/PageEditor/AbstractEditor.tsx rename to apps/app/_obsolete/src/components/PageEditor/AbstractEditor.tsx diff --git a/apps/app/src/components/PageEditor/Editor.module.scss b/apps/app/_obsolete/src/components/PageEditor/Editor.module.scss similarity index 100% rename from apps/app/src/components/PageEditor/Editor.module.scss rename to apps/app/_obsolete/src/components/PageEditor/Editor.module.scss diff --git a/apps/app/src/components/PageEditor/Editor.tsx b/apps/app/_obsolete/src/components/PageEditor/Editor.tsx similarity index 100% rename from apps/app/src/components/PageEditor/Editor.tsx rename to apps/app/_obsolete/src/components/PageEditor/Editor.tsx diff --git a/apps/app/src/components/PageEditor/EditorIcon.jsx b/apps/app/_obsolete/src/components/PageEditor/EditorIcon.jsx similarity index 100% rename from apps/app/src/components/PageEditor/EditorIcon.jsx rename to apps/app/_obsolete/src/components/PageEditor/EditorIcon.jsx diff --git a/apps/app/src/components/PageEditor/PasteHelper.js b/apps/app/_obsolete/src/components/PageEditor/PasteHelper.js similarity index 100% rename from apps/app/src/components/PageEditor/PasteHelper.js rename to apps/app/_obsolete/src/components/PageEditor/PasteHelper.js diff --git a/apps/app/src/components/PageEditor/PreventMarkdownListInterceptor.js b/apps/app/_obsolete/src/components/PageEditor/PreventMarkdownListInterceptor.js similarity index 100% rename from apps/app/src/components/PageEditor/PreventMarkdownListInterceptor.js rename to apps/app/_obsolete/src/components/PageEditor/PreventMarkdownListInterceptor.js diff --git a/apps/app/src/components/PageEditor/TextAreaEditor.jsx b/apps/app/_obsolete/src/components/PageEditor/TextAreaEditor.jsx similarity index 100% rename from apps/app/src/components/PageEditor/TextAreaEditor.jsx rename to apps/app/_obsolete/src/components/PageEditor/TextAreaEditor.jsx diff --git a/apps/app/src/components/PageEditor/PageEditor.tsx b/apps/app/src/components/PageEditor/PageEditor.tsx index 9bedb6fafee..d10468c1e5f 100644 --- a/apps/app/src/components/PageEditor/PageEditor.tsx +++ b/apps/app/src/components/PageEditor/PageEditor.tsx @@ -31,7 +31,7 @@ import { } from '~/stores/context'; import { useEditorSettings, - useCurrentIndentSize, useIsSlackEnabled, usePageTagsForEditors, + useCurrentIndentSize, usePageTagsForEditors, useIsConflict, useEditingMarkdown, useWaitingSaveProcessing, @@ -59,7 +59,6 @@ import { PageHeader } from '../PageHeader/PageHeader'; // import { ConflictDiffModal } from './PageEditor/ConflictDiffModal'; // import { ConflictDiffModal } from './ConflictDiffModal'; -// import Editor from './Editor'; import EditorNavbarBottom from './EditorNavbarBottom'; import Preview from './Preview'; import { scrollEditor, scrollPreview } from './ScrollSyncHelper'; @@ -105,7 +104,6 @@ export const PageEditor = React.memo((props: Props): JSX.Element => { const { data: isEditable } = useIsEditable(); const { mutate: mutateWaitingSaveProcessing } = useWaitingSaveProcessing(); const { data: editorMode, mutate: mutateEditorMode } = useEditorMode(); - const { data: isSlackEnabled } = useIsSlackEnabled(); const { data: isIndentSizeForced } = useIsIndentSizeForced(); const { data: currentIndentSize, mutate: mutateCurrentIndentSize } = useCurrentIndentSize(); const { data: defaultIndentSize } = useDefaultIndentSize(); @@ -164,15 +162,9 @@ export const PageEditor = React.memo((props: Props): JSX.Element => { const setMarkdownPreviewWithDebounce = useMemo(() => debounce(100, throttle(150, (value: string) => { setMarkdownToPreview(value); })), []); - // const mutateIsEnabledUnsavedWarningWithDebounce = useMemo(() => debounce(600, throttle(900, (value: string) => { - // // Displays an unsaved warning alert - // mutateIsEnabledUnsavedWarning(value !== initialValueRef.current); - // })), [mutateIsEnabledUnsavedWarning]); const markdownChangedHandler = useCallback((value: string) => { setMarkdownPreviewWithDebounce(value); - // mutateIsEnabledUnsavedWarningWithDebounce(value); - // }, [mutateIsEnabledUnsavedWarningWithDebounce, setMarkdownPreviewWithDebounce]); }, [setMarkdownPreviewWithDebounce]); @@ -421,18 +413,6 @@ export const PageEditor = React.memo((props: Props): JSX.Element => {
- {/* */}