From 3e376a9da426b9a82d56196e92a171594dacbc64 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Thu, 14 Mar 2019 19:27:03 +0100 Subject: [PATCH] Use only one button for Set featured image and image preview. (#14415) --- .../components/post-featured-image/index.js | 67 +++++++------------ 1 file changed, 26 insertions(+), 41 deletions(-) diff --git a/packages/editor/src/components/post-featured-image/index.js b/packages/editor/src/components/post-featured-image/index.js index 05e74ae5a2ace0..ca3df956c41a44 100644 --- a/packages/editor/src/components/post-featured-image/index.js +++ b/packages/editor/src/components/post-featured-image/index.js @@ -46,30 +46,32 @@ function PostFeaturedImage( { currentPostId, featuredImageId, onUpdateImage, onR return (
- { !! featuredImageId && - - ( - - ) } - value={ featuredImageId } - /> - - } + + ( + + ) } + value={ featuredImageId } + /> + { !! featuredImageId && media && ! media.isLoading && } - { ! featuredImageId && -
- - ( - - ) } - /> - -
- } { !! featuredImageId &&