Skip to content

Commit

Permalink
Remove extra toolbar group for native Cover component
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Mar 12, 2021
1 parent bac8b73 commit f3e4985
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/block-library/src/cover/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
ImageEditingButton,
IMAGE_DEFAULT_FOCAL_POINT,
ToolbarButton,
ToolbarGroup,
Gradient,
ColorPalette,
ColorPicker,
Expand Down Expand Up @@ -265,14 +264,12 @@ const Cover = ( {
const placeholderIcon = <Icon icon={ icon } { ...placeholderIconStyle } />;

const toolbarControls = ( open ) => (
<BlockControls>
<ToolbarGroup>
<ToolbarButton
title={ __( 'Edit cover media' ) }
icon={ replace }
onClick={ open }
/>
</ToolbarGroup>
<BlockControls group="other">
<ToolbarButton
title={ __( 'Edit cover media' ) }
icon={ replace }
onClick={ open }
/>
</BlockControls>
);

Expand Down

0 comments on commit f3e4985

Please sign in to comment.