fix: nested dynamic import
This commit is contained in:
parent
0c1be7a2cb
commit
a73ba156b7
|
|
@ -151,7 +151,7 @@ export const Image: React.FC<TImageProps> = ({
|
|||
)
|
||||
}
|
||||
|
||||
const ZoomedImage: React.FC<TImageProps> = (props) => {
|
||||
export const ZoomedImage: React.FC<TImageProps> = (props) => {
|
||||
return (
|
||||
<span className="text-center block">
|
||||
{/* eslint-disable-next-line jsx-a11y/alt-text */}
|
||||
|
|
@ -159,5 +159,3 @@ const ZoomedImage: React.FC<TImageProps> = (props) => {
|
|||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
export default ZoomedImage
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@ import remarkParse from "remark-parse"
|
|||
import remarkRehype from "remark-rehype"
|
||||
import { unified } from "unified"
|
||||
|
||||
import { ZoomedImage } from "~/components/ui/Image"
|
||||
|
||||
import { rehypeAudio } from "./rehype-audio"
|
||||
import {
|
||||
allowedCustomWrappers,
|
||||
|
|
@ -47,7 +49,6 @@ import { remarkPangu } from "./remark-pangu"
|
|||
import { remarkYoutube } from "./remark-youtube"
|
||||
import sanitizeScheme from "./sanitize-schema"
|
||||
|
||||
const ZoomedImage = dynamic(() => import("~/components/ui/Image"))
|
||||
const Style = dynamic(() => import("~/components/common/Style"))
|
||||
const Mention = dynamic(() => import("~/components/ui/Mention"))
|
||||
const Mermaid = dynamic(() => import("~/components/ui/Mermaid"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue