fix: nested dynamic import

This commit is contained in:
DIYgod 2023-05-12 17:56:34 +01:00
parent 0c1be7a2cb
commit a73ba156b7
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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"))