From 6c990033c7a8d82a816121b7d8fc82dcd076cfa5 Mon Sep 17 00:00:00 2001 From: chuyun Date: Thu, 13 Jul 2023 22:36:22 +0800 Subject: [PATCH] fix: the eoi component displays an exception under the block type --- packages/react-notion-x/src/components/eoi.tsx | 10 ++++++++-- packages/react-notion-x/src/styles.css | 7 +++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/react-notion-x/src/components/eoi.tsx b/packages/react-notion-x/src/components/eoi.tsx index d5684e850..a3862890a 100644 --- a/packages/react-notion-x/src/components/eoi.tsx +++ b/packages/react-notion-x/src/components/eoi.tsx @@ -63,8 +63,14 @@ export const EOI: React.FC<{
{title}
- - {(owner || lastUpdated) && ( + {!inline && owner ? ( +
+ {owner} + {lastUpdated && } + {lastUpdated && `Updated ${lastUpdated}`} +
+ ) : null} + {inline && (owner || lastUpdated) && (