From 0f77a12106176d18d177e231bf64f62bfb595cb2 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Thu, 18 Nov 2021 08:08:09 +0000 Subject: [PATCH] Post Featured Image: Remove withNotices HOC (#36596) --- packages/block-library/src/post-featured-image/edit.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/block-library/src/post-featured-image/edit.js b/packages/block-library/src/post-featured-image/edit.js index 1b5a93944bbbd..3f66acb7cddf2 100644 --- a/packages/block-library/src/post-featured-image/edit.js +++ b/packages/block-library/src/post-featured-image/edit.js @@ -8,7 +8,6 @@ import { ToggleControl, PanelBody, Placeholder, - withNotices, Button, } from '@wordpress/components'; import { @@ -54,7 +53,6 @@ function PostFeaturedImageDisplay( { attributes, setAttributes, context: { postId, postType, queryId }, - noticeUI, } ) { const isDescendentOfQueryLoop = !! queryId; const { isLink, height, width, scale } = attributes; @@ -111,7 +109,6 @@ function PostFeaturedImageDisplay( { allowedTypes={ ALLOWED_MEDIA_TYPES } onError={ onUploadError } placeholder={ placeholder } - notices={ noticeUI } mediaLibraryButton={ ( { open } ) => { return (