From 06356abd327a31fd84574b7de273baf5ab57171b Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Tue, 23 Jan 2024 11:57:36 +0100 Subject: [PATCH] remove extra div from edit --- packages/block-library/src/avatar/edit.js | 34 +++++++++++------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/packages/block-library/src/avatar/edit.js b/packages/block-library/src/avatar/edit.js index 8b326f4e72d88a..8726d0cf2c0df2 100644 --- a/packages/block-library/src/avatar/edit.js +++ b/packages/block-library/src/avatar/edit.js @@ -192,22 +192,12 @@ const UserEdit = ( { attributes, context, setAttributes, isSelected } ) => { avatar={ avatar } setAttributes={ setAttributes } /> -
- { attributes.isLink ? ( - event.preventDefault() } - > - - - ) : ( + { attributes.isLink ? ( + event.preventDefault() } + > { isSelected={ isSelected } setAttributes={ setAttributes } /> - ) } -
+ + ) : ( + + ) } ); };