mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-20 23:16:49 +00:00
dynamic import waline/client
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { RecentComments } from '@waline/client'
|
|
||||||
import BLOG from '@/blog.config'
|
import BLOG from '@/blog.config'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
import dynamic from 'next/dynamic'
|
||||||
|
|
||||||
|
const { RecentComments } = dynamic(() => import('@waline/client'))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://waline.js.org/guide/get-started.html
|
* @see https://waline.js.org/guide/get-started.html
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { RecentComments } from '@waline/client'
|
|
||||||
import BLOG from '@/blog.config'
|
import BLOG from '@/blog.config'
|
||||||
import Card from '@/themes/hexo/components/Card'
|
import Card from '@/themes/hexo/components/Card'
|
||||||
import { useGlobal } from '@/lib/global'
|
import { useGlobal } from '@/lib/global'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
import dynamic from 'next/dynamic'
|
||||||
|
|
||||||
|
const { RecentComments } = dynamic(() => import('@waline/client'))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://waline.js.org/guide/get-started.html
|
* @see https://waline.js.org/guide/get-started.html
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { RecentComments } from '@waline/client'
|
|
||||||
import BLOG from '@/blog.config'
|
import BLOG from '@/blog.config'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
import dynamic from 'next/dynamic'
|
||||||
|
|
||||||
|
const { RecentComments } = dynamic(() => import('@waline/client'))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://waline.js.org/guide/get-started.html
|
* @see https://waline.js.org/guide/get-started.html
|
||||||
|
|||||||
Reference in New Issue
Block a user