Skip to content

Commit

Permalink
Pass current block to CustomComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
pyk authored Feb 16, 2021
1 parent 0ec6df0 commit 6db4b1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ export const Block: React.FC<Block> = props => {
return (
<CustomComponent
renderComponent={renderComponent}
block={block}
blockValue={blockValue as BlockValueProp<typeof blockValue.type>}
level={level}
>
Expand Down

0 comments on commit 6db4b1d

Please sign in to comment.