From c7d572ed58d49d2c3f6a7245a1f1edc8929e96df Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Thu, 21 Oct 2021 11:55:49 -0400 Subject: [PATCH] feat: remove pdf support --- components/NotionPage.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/NotionPage.tsx b/components/NotionPage.tsx index c43e00c..b69ab7d 100644 --- a/components/NotionPage.tsx +++ b/components/NotionPage.tsx @@ -52,7 +52,12 @@ import styles from './styles.module.css' // } // ) -const Pdf = dynamic(() => import('react-notion-x').then((notion) => notion.Pdf)) +// TODO: PDF support via "react-pdf" package has numerous troubles building +// with next.js +// const Pdf = dynamic( +// () => import('react-notion-x').then((notion) => notion.Pdf), +// { ssr: false } +// ) const Equation = dynamic(() => import('react-notion-x').then((notion) => notion.Equation) @@ -249,7 +254,6 @@ export const NotionPage: React.FC = ({ collectionRow: CollectionRow, tweet: Tweet, modal: Modal, - pdf: Pdf, equation: Equation }} recordMap={recordMap}