From 41e83658d37e0127fff1f3ed3a24b8e5bff1c33a Mon Sep 17 00:00:00 2001 From: otoyo Date: Mon, 5 Sep 2022 08:42:41 +0900 Subject: [PATCH 1/2] Display multi-blocks in SyncedBlock --- src/components/notion-block.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/notion-block.tsx b/src/components/notion-block.tsx index ce8b5b1d..b10dcf41 100644 --- a/src/components/notion-block.tsx +++ b/src/components/notion-block.tsx @@ -284,7 +284,7 @@ const NumberedListItems = ({ blocks, level = 1 }) => )) -const SyncedBlock = ({ block }) => block.SyncedBlock.Children.map((child: interfaces.Block) => ) +const SyncedBlock = ({ block }) => const Toggle = ({ block }) => (
From 7eaa261dbab28636f87f35a3b733d4f4ad257ed3 Mon Sep 17 00:00:00 2001 From: otoyo Date: Mon, 5 Sep 2022 08:43:56 +0900 Subject: [PATCH 2/2] Display multi-blocks in Toggle --- src/components/notion-block.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/notion-block.tsx b/src/components/notion-block.tsx index b10dcf41..2de13af7 100644 --- a/src/components/notion-block.tsx +++ b/src/components/notion-block.tsx @@ -294,7 +294,7 @@ const Toggle = ({ block }) => ( ))}
- {block.Toggle.Children.map((child: interfaces.Block) => )} +
)