File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ import { Block } from "./block";
44
55interface NotionRendererProps {
66 blockMap : BlockMapType ;
7- currentID ?: string ;
7+ currentId ?: string ;
88 level ?: number ;
99}
1010
1111export const NotionRenderer : React . FC < NotionRendererProps > = ( {
1212 level = 0 ,
13- currentID ,
13+ currentId ,
1414 blockMap
1515} ) => {
16- const id = currentID || Object . keys ( blockMap ) [ 0 ] ;
16+ const id = currentId || Object . keys ( blockMap ) [ 0 ] ;
1717 const currentBlock = blockMap [ id ] ;
1818 const parentBlock = blockMap [ currentBlock . value . parent_id ] ;
1919
@@ -27,7 +27,7 @@ export const NotionRenderer: React.FC<NotionRendererProps> = ({
2727 { currentBlock ?. value ?. content ?. map ( contentId => (
2828 < NotionRenderer
2929 key = { contentId }
30- currentID = { contentId }
30+ currentId = { contentId }
3131 blockMap = { blockMap }
3232 level = { level + 1 }
3333 />
You can’t perform that action at this time.
0 commit comments