diff --git a/packages/block-library/src/archives/edit.js b/packages/block-library/src/archives/edit.js index b51bd9a4fe1e6b..d4f25da8507f3e 100644 --- a/packages/block-library/src/archives/edit.js +++ b/packages/block-library/src/archives/edit.js @@ -12,9 +12,16 @@ import { __ } from '@wordpress/i18n'; import { InspectorControls, useBlockProps } from '@wordpress/block-editor'; import ServerSideRender from '@wordpress/server-side-render'; +/** + * Internal dependencies + */ +import { useToolsPanelDropdownMenuProps } from '../utils/hooks'; + export default function ArchivesEdit( { attributes, setAttributes } ) { const { showLabel, showPostCounts, displayAsDropdown, type } = attributes; + const dropdownMenuProps = useToolsPanelDropdownMenuProps(); + return ( <> @@ -28,6 +35,7 @@ export default function ArchivesEdit( { attributes, setAttributes } ) { type: 'monthly', } ); } } + dropdownMenuProps={ dropdownMenuProps } >