From efdb2d084e49b3bf8d11eae724b4602dbad484b8 Mon Sep 17 00:00:00 2001 From: tlyong1992 Date: Mon, 6 Jun 2022 17:23:25 +0800 Subject: [PATCH] =?UTF-8?q?NotionPage=20image=20Link=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/NotionPage.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/NotionPage.js b/components/NotionPage.js index 61b7fc56..3fb9ae23 100644 --- a/components/NotionPage.js +++ b/components/NotionPage.js @@ -3,6 +3,8 @@ import dynamic from 'next/dynamic' import mediumZoom from 'medium-zoom' import React from 'react' import { isBrowser } from '@/lib/utils' +import Image from 'next/image' +import Link from 'next/link' const Code = dynamic(() => import('react-notion-x/build/third-party/code').then((m) => m.Code), { ssr: false } @@ -75,7 +77,9 @@ const NotionPage = ({ post }) => { Collection, Equation, Modal, - Pdf + Pdf, + nextImage: Image, + nextLink: Link }} /> }