Skip to content

Commit

Permalink
Add comment about nav block specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Dwyer committed Jan 26, 2023
1 parent a8bbbfe commit 025d050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/block-card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function BlockCard( { title, icon, description, blockType, className } ) {

return (
<div className={ classnames( 'block-editor-block-card', className ) }>
{ parentNavBlockClientId && (
{ parentNavBlockClientId && ( // This is only used by the Navigation block for now. It's not ideal having Navigation block specific code here.
<Button
onClick={ () => selectBlock( parentNavBlockClientId ) }
label={ __( 'Go to parent Navigation block' ) }
Expand Down

0 comments on commit 025d050

Please sign in to comment.