Merge pull request #324 from tangly1024/bugfix-code-block

Code调整,修复代码加载不全问题
This commit is contained in:
tangly1024
2022-06-22 12:16:42 +08:00
committed by GitHub

View File

@@ -5,10 +5,8 @@ import React from 'react'
import { isBrowser } from '@/lib/utils'
import Image from 'next/image'
import Link from 'next/link'
import { Code } from 'react-notion-x/build/third-party/code'
const Code = dynamic(() =>
import('react-notion-x/build/third-party/code').then((m) => m.Code), { ssr: true }
)
const Collection = dynamic(() =>
import('react-notion-x/build/third-party/collection').then((m) => m.Collection), { ssr: true }
)