diff --git a/packages/edit-widgets/src/components/secondary-sidebar/inserter-sidebar.js b/packages/edit-widgets/src/components/secondary-sidebar/inserter-sidebar.js index 72e04e5f62034c..09045dcf2a1a1e 100644 --- a/packages/edit-widgets/src/components/secondary-sidebar/inserter-sidebar.js +++ b/packages/edit-widgets/src/components/secondary-sidebar/inserter-sidebar.js @@ -2,10 +2,7 @@ * WordPress dependencies */ import { __experimentalLibrary as Library } from '@wordpress/block-editor'; -import { - useViewportMatch, - __experimentalUseDialog as useDialog, -} from '@wordpress/compose'; +import { useViewportMatch } from '@wordpress/compose'; import { useCallback, useRef } from '@wordpress/element'; import { useDispatch } from '@wordpress/data'; @@ -25,19 +22,10 @@ export default function InserterSidebar() { return setIsInserterOpened( false ); }, [ setIsInserterOpened ] ); - const [ inserterDialogRef, inserterDialogProps ] = useDialog( { - onClose: closeInserter, - focusOnMount: true, - } ); - const libraryRef = useRef(); return ( -
+