Skip to content

Commit

Permalink
Gallery: Remove 'withNotices' HoC
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Aug 9, 2024
1 parent 00d28d0 commit 997d88d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import clsx from 'clsx';
/**
* WordPress dependencies
*/
import { compose } from '@wordpress/compose';
import {
BaseControl,
PanelBody,
Expand All @@ -17,7 +16,6 @@ import {
MenuGroup,
MenuItem,
ToolbarDropdownMenu,
withNotices,
} from '@wordpress/components';
import {
store as blockEditorStore,
Expand Down Expand Up @@ -696,7 +694,4 @@ function GalleryEdit( props ) {
</>
);
}
export default compose( [
withNotices,
withViewportMatch( { isNarrow: '< small' } ),
] )( GalleryEdit );
export default withViewportMatch( { isNarrow: '< small' } )( GalleryEdit );

0 comments on commit 997d88d

Please sign in to comment.