From 0fa81fefdbac0b2ca4f732ce319fcdf5fd5e08b0 Mon Sep 17 00:00:00 2001 From: reiji-h Date: Thu, 6 Feb 2025 08:15:28 +0000 Subject: [PATCH] split component --- .../PageEditor/EditorNavbar/EditorNavbar.tsx | 14 ++-- .../components/PageEditor/PageEditor.tsx | 70 ++++++++++--------- 2 files changed, 47 insertions(+), 37 deletions(-) diff --git a/apps/app/src/client/components/PageEditor/EditorNavbar/EditorNavbar.tsx b/apps/app/src/client/components/PageEditor/EditorNavbar/EditorNavbar.tsx index b85bdc74857..837ff638e65 100644 --- a/apps/app/src/client/components/PageEditor/EditorNavbar/EditorNavbar.tsx +++ b/apps/app/src/client/components/PageEditor/EditorNavbar/EditorNavbar.tsx @@ -8,16 +8,20 @@ import styles from './EditorNavbar.module.scss'; const moduleClass = styles['editor-navbar'] ?? ''; -export const EditorNavbar = (): JSX.Element => { +const EditingUsers = (): JSX.Element => { const { data: editingUsers } = useEditingUsers(); + return ( + + ); +}; +export const EditorNavbar = (): JSX.Element => { return (
-
-
+
); }; diff --git a/apps/app/src/client/components/PageEditor/PageEditor.tsx b/apps/app/src/client/components/PageEditor/PageEditor.tsx index ff4e5e544a6..8a368fe3ab3 100644 --- a/apps/app/src/client/components/PageEditor/PageEditor.tsx +++ b/apps/app/src/client/components/PageEditor/PageEditor.tsx @@ -81,7 +81,7 @@ type Props = { visibility?: boolean, } -export const PageEditor = React.memo((props: Props): JSX.Element => { +export const PageEditorSubstance = (props: Props): JSX.Element => { const { t } = useTranslation(); @@ -361,42 +361,48 @@ export const PageEditor = React.memo((props: Props): JSX.Element => { return <>; } + return ( +
+
+ +
+
+ +
+
+ ); +}; + +export const PageEditor = React.memo((props: Props): JSX.Element => { return (
-
-
- -
-
- -
-
+