mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-18 07:26:43 +00:00
fix: new import paths for third-party components
This commit is contained in:
@@ -42,27 +42,24 @@ import styles from './styles.module.css'
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
const Code = dynamic(() =>
|
||||
import('react-notion-x/build/esm/third-party/code').then((m) => m.Code)
|
||||
import('react-notion-x/build/third-party/code').then((m) => m.Code)
|
||||
)
|
||||
const Collection = dynamic(() =>
|
||||
import('react-notion-x/build/esm/third-party/collection').then(
|
||||
import('react-notion-x/build/third-party/collection').then(
|
||||
(m) => m.Collection
|
||||
)
|
||||
)
|
||||
const Equation = dynamic(() =>
|
||||
import('react-notion-x/build/esm/third-party/equation').then(
|
||||
(m) => m.Equation
|
||||
)
|
||||
import('react-notion-x/build/third-party/equation').then((m) => m.Equation)
|
||||
)
|
||||
const Pdf = dynamic(
|
||||
() => import('react-notion-x/build/esm/third-party/pdf').then((m) => m.Pdf),
|
||||
() => import('react-notion-x/build/third-party/pdf').then((m) => m.Pdf),
|
||||
{
|
||||
ssr: false
|
||||
}
|
||||
)
|
||||
const Modal = dynamic(
|
||||
() =>
|
||||
import('react-notion-x/build/esm/third-party/modal').then((m) => m.Modal),
|
||||
() => import('react-notion-x/build/third-party/modal').then((m) => m.Modal),
|
||||
{
|
||||
ssr: false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user