File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { type PageBlock } from 'notion-types'
77import { formatDate , getBlockTitle , getPageProperty } from 'notion-utils'
88import * as React from 'react'
99import BodyClassName from 'react-body-classname'
10- import { NotionRenderer } from 'react-notion-x'
10+ import { type NotionComponents , NotionRenderer } from 'react-notion-x'
1111import TweetEmbed from 'react-tweet-embed'
1212import { useSearchParam } from 'react-use'
1313
@@ -150,9 +150,9 @@ export function NotionPage({
150150 const router = useRouter ( )
151151 const lite = useSearchParam ( 'lite' )
152152
153- const components = React . useMemo (
153+ const components = React . useMemo < Partial < NotionComponents > > (
154154 ( ) => ( {
155- nextImage : Image ,
155+ nextLegacyImage : Image ,
156156 nextLink : Link ,
157157 Code,
158158 Collection,
You can’t perform that action at this time.
0 commit comments