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";
4
4
5
5
interface NotionRendererProps {
6
6
blockMap : BlockMapType ;
7
- currentID ?: string ;
7
+ currentId ?: string ;
8
8
level ?: number ;
9
9
}
10
10
11
11
export const NotionRenderer : React . FC < NotionRendererProps > = ( {
12
12
level = 0 ,
13
- currentID ,
13
+ currentId ,
14
14
blockMap
15
15
} ) => {
16
- const id = currentID || Object . keys ( blockMap ) [ 0 ] ;
16
+ const id = currentId || Object . keys ( blockMap ) [ 0 ] ;
17
17
const currentBlock = blockMap [ id ] ;
18
18
const parentBlock = blockMap [ currentBlock . value . parent_id ] ;
19
19
@@ -27,7 +27,7 @@ export const NotionRenderer: React.FC<NotionRendererProps> = ({
27
27
{ currentBlock ?. value ?. content ?. map ( contentId => (
28
28
< NotionRenderer
29
29
key = { contentId }
30
- currentID = { contentId }
30
+ currentId = { contentId }
31
31
blockMap = { blockMap }
32
32
level = { level + 1 }
33
33
/>
You can’t perform that action at this time.
0 commit comments