Skip to content

Commit

Permalink
Feedback changes updated
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-murugan committed Jan 13, 2025
1 parent e14c01d commit 355dd06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/query-title/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { __, _x, sprintf } from '@wordpress/i18n';
* Internal dependencies
*/
import { useArchiveLabel } from './use-archive-label';
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';

const SUPPORTED_TYPES = [ 'archive', 'search' ];

Expand All @@ -40,6 +41,7 @@ export default function QueryTitleEdit( {
setAttributes,
} ) {
const { archiveTypeLabel, archiveNameLabel } = useArchiveLabel();
const dropdownMenuProps = useToolsPanelDropdownMenuProps();

const TagName = `h${ level }`;
const blockProps = useBlockProps( {
Expand Down Expand Up @@ -100,6 +102,7 @@ export default function QueryTitleEdit( {
showPrefix: true,
} )
}
dropdownMenuProps={ dropdownMenuProps }
>
<ToolsPanelItem
hasValue={ () => showPrefix === false }
Expand Down

0 comments on commit 355dd06

Please sign in to comment.