feat: remove pdf support

This commit is contained in:
Travis Fischer
2021-10-21 11:55:49 -04:00
parent 19e8693d1b
commit c7d572ed58

View File

@@ -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<types.PageProps> = ({
collectionRow: CollectionRow,
tweet: Tweet,
modal: Modal,
pdf: Pdf,
equation: Equation
}}
recordMap={recordMap}