Skip to content

Commit

Permalink
Rename side editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Oct 20, 2023
1 parent 201ad0e commit 3518722
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/page-pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -262,7 +262,7 @@ export default function PagePages() {
<Page>
<div className="edit-site-page-pages-preview">
{ selection.length === 1 && (
<Editor
<SideEditor
postId={ selection[ 0 ] }
postType={ postType }
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Editor />;
};
}

0 comments on commit 3518722

Please sign in to comment.