mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 23:16:47 +00:00
feat: remove pdf support
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user