+
(
-
+ }
+ { ! featuredImageId &&
+
+
+ (
+
+ { postLabel.set_featured_image || DEFAULT_SET_FEATURE_IMAGE_LABEL }
+
+ ) }
+ />
+
}
{ !! featuredImageId &&
-
- { postLabel.remove_featured_image || DEFAULT_REMOVE_FEATURE_IMAGE_LABEL }
-
+
+
+ { postLabel.remove_featured_image || DEFAULT_REMOVE_FEATURE_IMAGE_LABEL }
+
+
}
diff --git a/packages/format-library/src/image/index.js b/packages/format-library/src/image/index.js
index 7deae883d3b3b..c26bcca626a5d 100644
--- a/packages/format-library/src/image/index.js
+++ b/packages/format-library/src/image/index.js
@@ -3,9 +3,9 @@
*/
import { Path, SVG } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
-import { Fragment, Component } from '@wordpress/element';
+import { Component } from '@wordpress/element';
import { insertObject } from '@wordpress/rich-text';
-import { MediaUpload, RichTextInserterItem } from '@wordpress/editor';
+import { MediaUpload, RichTextInserterItem, MediaUploadCheck } from '@wordpress/editor';
const ALLOWED_MEDIA_TYPES = [ 'image' ];
@@ -46,7 +46,7 @@ export const image = {
const { value, onChange } = this.props;
return (
-