Skip to content

Commit 163fda4

Browse files
🈂
1 parent eac2132 commit 163fda4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/NotionPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { type PageBlock } from 'notion-types'
77
import { formatDate, getBlockTitle, getPageProperty } from 'notion-utils'
88
import * as React from 'react'
99
import BodyClassName from 'react-body-classname'
10-
import { NotionRenderer } from 'react-notion-x'
10+
import { type NotionComponents, NotionRenderer } from 'react-notion-x'
1111
import TweetEmbed from 'react-tweet-embed'
1212
import { 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,

0 commit comments

Comments
 (0)