Skip to content

Commit 1a34715

Browse files
authored
Merge pull request #52 from 01-binary/jsx-update
Jsx update
2 parents 84aa193 + e06cf1e commit 1a34715

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.changeset/shiny-regions-wink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"notion-to-jsx": patch
3+
---
4+
5+
chore

packages/notion-to-jsx/src/components/Renderer/components/Block/BlockRenderer.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,17 @@ const BlockRenderer: React.FC<Props> = ({ block, onFocus, index }) => {
9898

9999
case 'table':
100100
return <Table block={block} tabIndex={blockProps.tabIndex} />;
101-
101+
102102
case 'toggle':
103-
return <Toggle block={block} tabIndex={blockProps.tabIndex} onFocus={onFocus} />;
103+
return (
104+
<Toggle
105+
block={block}
106+
tabIndex={blockProps.tabIndex}
107+
onFocus={onFocus}
108+
/>
109+
);
104110

105111
default:
106-
console.log(`지원되지 않는 블록 타입: ${block.type}`, block);
107112
return null;
108113
}
109114
};

0 commit comments

Comments
 (0)