Skip to content

Commit

Permalink
Hide the block settings button
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonis Lilis committed Jul 10, 2020
1 parent 96b1582 commit 8c13787
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const FillWithSettingsButton = ( { children, ...props } ) => {
</BottomSheetConsumer>
}
</Fill>
{ React.Children.count( children ) > 0 && <BlockSettingsButton /> }
{ React.Children.toArray( children ).filter(
( child ) => child.props.dontCount !== true
).length > 0 && <BlockSettingsButton /> }
</>
);
};
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/cover/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ const Cover = ( {
onNavigationBack={ closeSettingsBottomSheet }
onCloseBottomSheet={ () => {} }
isBottomSheetContentScrolling={ () => {} }
dontCount={ true }
/>
</InspectorControls>
);
Expand Down

0 comments on commit 8c13787

Please sign in to comment.