docs(playground): reduce component deps of the first html string

This commit is contained in:
unix
2020-05-21 05:45:43 +08:00
parent c111bb39d3
commit b9da09168c

View File

@@ -1,6 +1,6 @@
import React from 'react'
import dynamic from 'next/dynamic'
import { useTheme, Loading, Spacer } from 'components'
import { useTheme, Loading } from 'components'
import withDefaults from 'components/utils/with-defaults'
import { useConfigs } from 'lib/config-context'
import Title from './title'
@@ -8,10 +8,8 @@ import Title from './title'
const DynamicLive = dynamic(() => import('./dynamic-live'), {
ssr: false,
loading: () => (
<div>
<Spacer y={1.5} />
<div style={{ padding: '20pt 0' }}>
<Loading />
<Spacer y={1.5} />
</div>
),
})