Skip to content

Commit

Permalink
Rename side editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 3, 2023
1 parent 222b484 commit c45bc91
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 {
viewPostAction,
useEditPostAction,
} from '../actions';
import Editor from './editor';
import SideEditor from './side-editor';
import Media from '../media';
import { unlock } from '../../lock-unlock';
const { useLocation } = unlock( routerPrivateApis );
Expand Down Expand Up @@ -279,7 +279,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 c45bc91

Please sign in to comment.