diff --git a/packages/editor/src/components/inserter-sidebar/index.js b/packages/editor/src/components/inserter-sidebar/index.js index 11510c21e4300..dcc95c8039531 100644 --- a/packages/editor/src/components/inserter-sidebar/index.js +++ b/packages/editor/src/components/inserter-sidebar/index.js @@ -6,10 +6,7 @@ import { store as blockEditorStore, privateApis as blockEditorPrivateApis, } from '@wordpress/block-editor'; -import { - useViewportMatch, - __experimentalUseDialog as useDialog, -} from '@wordpress/compose'; +import { useViewportMatch } from '@wordpress/compose'; import { useCallback, useRef } from '@wordpress/element'; import { store as preferencesStore } from '@wordpress/preferences'; import { ESCAPE } from '@wordpress/keycodes'; @@ -63,10 +60,6 @@ export default function InserterSidebar() { const { disableComplementaryArea } = useDispatch( interfaceStore ); const isMobileViewport = useViewportMatch( 'medium', '<' ); - const [ inserterDialogRef, inserterDialogProps ] = useDialog( { - onClose: () => setIsInserterOpened( false ), - focusOnMount: true, - } ); const libraryRef = useRef(); // When closing the inserter, focus should return to the toggle button. @@ -109,23 +102,9 @@ export default function InserterSidebar() { ); - if ( window.__experimentalEnableZoomedOutPatternsTab ) { - return ( - // eslint-disable-next-line jsx-a11y/no-static-element-interactions -