File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ import {
99 RangeControl ,
1010} from '@wordpress/components' ;
1111
12+ /**
13+ * Internal dependencies
14+ */
15+ import { useToolsPanelDropdownMenuProps } from '../utils/hooks' ;
16+
1217const createPaginationItem = ( content , Tag = 'a' , extraClass = '' ) => (
1318 < Tag key = { content } className = { `page-numbers ${ extraClass } ` } >
1419 { content }
@@ -50,13 +55,15 @@ export default function QueryPaginationNumbersEdit( {
5055 const paginationNumbers = previewPaginationNumbers (
5156 parseInt ( midSize , 10 )
5257 ) ;
58+ const dropdownMenuProps = useToolsPanelDropdownMenuProps ( ) ;
5359
5460 return (
5561 < >
5662 < InspectorControls >
5763 < ToolsPanel
5864 label = { __ ( 'Settings' ) }
5965 resetAll = { ( ) => setAttributes ( { midSize : 2 } ) }
66+ dropdownMenuProps = { dropdownMenuProps }
6067 >
6168 < ToolsPanelItem
6269 label = { __ ( 'Number of links' ) }
You can’t perform that action at this time.
0 commit comments