From 997d88df62ca397be00df3d8599ebcbd6f81faa7 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Fri, 9 Aug 2024 08:18:26 +0400 Subject: [PATCH] Gallery: Remove 'withNotices' HoC --- packages/block-library/src/gallery/edit.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/block-library/src/gallery/edit.js b/packages/block-library/src/gallery/edit.js index f2faa40110dd13..c06bdb1ea24aeb 100644 --- a/packages/block-library/src/gallery/edit.js +++ b/packages/block-library/src/gallery/edit.js @@ -6,7 +6,6 @@ import clsx from 'clsx'; /** * WordPress dependencies */ -import { compose } from '@wordpress/compose'; import { BaseControl, PanelBody, @@ -17,7 +16,6 @@ import { MenuGroup, MenuItem, ToolbarDropdownMenu, - withNotices, } from '@wordpress/components'; import { store as blockEditorStore, @@ -696,7 +694,4 @@ function GalleryEdit( props ) { ); } -export default compose( [ - withNotices, - withViewportMatch( { isNarrow: '< small' } ), -] )( GalleryEdit ); +export default withViewportMatch( { isNarrow: '< small' } )( GalleryEdit );