From b3973a9643f56e82015fbc50bdde1f859fc5face Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Mon, 2 Dec 2019 15:37:38 +0200 Subject: [PATCH] removes redundant fragment --- .../components/media-replace-flow/index.js | 74 +++++++++---------- 1 file changed, 36 insertions(+), 38 deletions(-) diff --git a/packages/block-editor/src/components/media-replace-flow/index.js b/packages/block-editor/src/components/media-replace-flow/index.js index 0a8d58344d6f55..466dcce5aa913b 100644 --- a/packages/block-editor/src/components/media-replace-flow/index.js +++ b/packages/block-editor/src/components/media-replace-flow/index.js @@ -150,44 +150,42 @@ const MediaReplaceFlow = ( onClose={ onClose } className={ 'media-replace-flow__options' } > - <> - - - { __( 'Open Media Library' ) } - - - { - return ( - { - openFileDialog(); - } } - > - { __( 'Upload' ) } - - ); - } } - /> - - ( setShowURLInput( ! showURLInput ) ) } - aria-expanded={ showURLInput } - > -
{ __( 'Insert from URL' ) }
-
-
- { showURLInput &&
- { urlInputUIContent } -
} - + + + { __( 'Open Media Library' ) } + + + { + return ( + { + openFileDialog(); + } } + > + { __( 'Upload' ) } + + ); + } } + /> + + ( setShowURLInput( ! showURLInput ) ) } + aria-expanded={ showURLInput } + > +
{ __( 'Insert from URL' ) }
+
+
+ { showURLInput &&
+ { urlInputUIContent } +
} }