From 163fda453c5efd9468d6f0ddf5afc779a7629285 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Fri, 1 Nov 2024 00:59:37 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=88=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/NotionPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/NotionPage.tsx b/components/NotionPage.tsx index f1ed171..47a655d 100644 --- a/components/NotionPage.tsx +++ b/components/NotionPage.tsx @@ -7,7 +7,7 @@ import { type PageBlock } from 'notion-types' import { formatDate, getBlockTitle, getPageProperty } from 'notion-utils' import * as React from 'react' import BodyClassName from 'react-body-classname' -import { NotionRenderer } from 'react-notion-x' +import { type NotionComponents, NotionRenderer } from 'react-notion-x' import TweetEmbed from 'react-tweet-embed' import { useSearchParam } from 'react-use' @@ -150,9 +150,9 @@ export function NotionPage({ const router = useRouter() const lite = useSearchParam('lite') - const components = React.useMemo( + const components = React.useMemo>( () => ({ - nextImage: Image, + nextLegacyImage: Image, nextLink: Link, Code, Collection,