Skip to content

Commit

Permalink
Drop onClick and only pass selectBlock to BlockNavigationBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jun 8, 2020
1 parent d9ffd03 commit c5e98ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { useBlockNavigationContext } from './context';

export default function BlockNavigationBlock( {
block,
onClick,
isSelected,
selectBlock,
position,
Expand Down Expand Up @@ -90,7 +89,7 @@ export default function BlockNavigationBlock( {
/>
<BlockNavigationBlockContents
block={ block }
onClick={ onClick }
onClick={ () => selectBlock( block.clientId ) }
isSelected={ isSelected }
position={ position }
siblingCount={ siblingCount }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export default function BlockNavigationBranch( props ) {
<Fragment key={ clientId }>
<BlockNavigationBlock
block={ block }
onClick={ () => selectBlock( clientId ) }
selectBlock={ selectBlock }
isSelected={ selectedBlockClientId === clientId }
level={ level }
Expand Down

0 comments on commit c5e98ba

Please sign in to comment.