Skip to content

Commit

Permalink
Editor: Remove unused selector value from 'PostTitle'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Feb 20, 2024
1 parent c4b422a commit ea57e1f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/editor/src/components/post-title/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,18 @@ import { __unstableStripHTML as stripHTML } from '@wordpress/dom';
/**
* Internal dependencies
*/
import { store as editorStore } from '../../store';
import { DEFAULT_CLASSNAMES, REGEXP_NEWLINES } from './constants';
import usePostTitleFocus from './use-post-title-focus';
import usePostTitle from './use-post-title';
import PostTypeSupportCheck from '../post-type-support-check';

function PostTitle( _, forwardedRef ) {
const { placeholder, hasFixedToolbar } = useSelect( ( select ) => {
const { getEditedPostAttribute } = select( editorStore );
const { getSettings } = select( blockEditorStore );
const { titlePlaceholder, hasFixedToolbar: _hasFixedToolbar } =
getSettings();

return {
title: getEditedPostAttribute( 'title' ),
placeholder: titlePlaceholder,
hasFixedToolbar: _hasFixedToolbar,
};
Expand Down

0 comments on commit ea57e1f

Please sign in to comment.