From 35187227d288f273343eee723bb47c65751f846f Mon Sep 17 00:00:00 2001 From: Ella Date: Fri, 20 Oct 2023 14:46:37 +0300 Subject: [PATCH] Rename side editor --- packages/edit-site/src/components/page-pages/index.js | 4 ++-- .../src/components/page-pages/{editor.js => side-editor.js} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename packages/edit-site/src/components/page-pages/{editor.js => side-editor.js} (78%) diff --git a/packages/edit-site/src/components/page-pages/index.js b/packages/edit-site/src/components/page-pages/index.js index f32a134c3e30b8..d11e452fb29262 100644 --- a/packages/edit-site/src/components/page-pages/index.js +++ b/packages/edit-site/src/components/page-pages/index.js @@ -27,7 +27,7 @@ import useTrashPostAction from '../actions/trash-post'; import Media from '../media'; import DataviewsContext from '../dataviews/context'; import { DEFAULT_STATUSES } from '../dataviews/provider'; -import Editor from './editor'; +import SideEditor from './side-editor'; const EMPTY_ARRAY = []; const defaultConfigPerViewType = { @@ -262,7 +262,7 @@ export default function PagePages() {
{ selection.length === 1 && ( - diff --git a/packages/edit-site/src/components/page-pages/editor.js b/packages/edit-site/src/components/page-pages/side-editor.js similarity index 78% rename from packages/edit-site/src/components/page-pages/editor.js rename to packages/edit-site/src/components/page-pages/side-editor.js index 1a075f1590b0f5..fca561cf9f4d5d 100644 --- a/packages/edit-site/src/components/page-pages/editor.js +++ b/packages/edit-site/src/components/page-pages/side-editor.js @@ -4,11 +4,11 @@ import Editor from '../editor'; import { useInitEditedEntity } from '../sync-state-with-url/use-init-edited-entity-from-url'; -export default ( { postType, postId } ) => { +export default function SideEditor( { postType, postId } ) { useInitEditedEntity( { postId, postType, } ); return ; -}; +}