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'
7
7
import { formatDate , getBlockTitle , getPageProperty } from 'notion-utils'
8
8
import * as React from 'react'
9
9
import BodyClassName from 'react-body-classname'
10
- import { NotionRenderer } from 'react-notion-x'
10
+ import { type NotionComponents , NotionRenderer } from 'react-notion-x'
11
11
import TweetEmbed from 'react-tweet-embed'
12
12
import { useSearchParam } from 'react-use'
13
13
@@ -150,9 +150,9 @@ export function NotionPage({
150
150
const router = useRouter ( )
151
151
const lite = useSearchParam ( 'lite' )
152
152
153
- const components = React . useMemo (
153
+ const components = React . useMemo < Partial < NotionComponents > > (
154
154
( ) => ( {
155
- nextImage : Image ,
155
+ nextLegacyImage : Image ,
156
156
nextLink : Link ,
157
157
Code,
158
158
Collection,
You can’t perform that action at this time.
0 commit comments