From a82956438009e56aac2485181d002b89adf7fb6c 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 0aaff3c717f8df..7a93f18db53d36 100644 --- a/packages/block-library/src/post-featured-image/edit.js +++ b/packages/block-library/src/post-featured-image/edit.js @@ -7,7 +7,6 @@ import { ToggleControl, PanelBody, Placeholder, - withNotices, Button, } from '@wordpress/components'; import { @@ -53,7 +52,6 @@ function PostFeaturedImageDisplay( { attributes, setAttributes, context: { postId, postType, queryId }, - noticeUI, } ) { const isDescendentOfQueryLoop = !! queryId; const { isLink, height, width, scale } = attributes; @@ -110,7 +108,6 @@ function PostFeaturedImageDisplay( { allowedTypes={ ALLOWED_MEDIA_TYPES } onError={ onUploadError } placeholder={ placeholder } - notices={ noticeUI } mediaLibraryButton={ ( { open } ) => { return (