Skip to content

Commit 213d102

Browse files
committed
Change capitalization of currentId
1 parent d29c129 commit 213d102

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/renderer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ import { Block } from "./block";
44

55
interface NotionRendererProps {
66
blockMap: BlockMapType;
7-
currentID?: string;
7+
currentId?: string;
88
level?: number;
99
}
1010

1111
export 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
/>

0 commit comments

Comments
 (0)