[site/mdx][s]: remove dynamic imports
This commit is contained in:
parent
b368b841c3
commit
4be8f9a35a
|
|
@ -1,22 +1,12 @@
|
|||
import React from "react";
|
||||
import Head from "next/head";
|
||||
import dynamic from "next/dynamic";
|
||||
import { useMDXComponent } from "next-contentlayer/hooks";
|
||||
|
||||
import { Anchor } from "./Anchor";
|
||||
import { Heading } from "./Heading";
|
||||
import { Paragraph } from "./Paragraph";
|
||||
import useHeadingsObserver from "../hooks/useHeadingsObserver";
|
||||
|
||||
const Anchor = dynamic(
|
||||
() => import("./Anchor").then((module) => module.Anchor)
|
||||
// {
|
||||
// ssr: false,
|
||||
// }
|
||||
);
|
||||
|
||||
const Paragraph = dynamic(() =>
|
||||
import("./Paragraph").then((module) => module.Paragraph)
|
||||
);
|
||||
|
||||
const MdxContent = ({ body }) => {
|
||||
const observer = useHeadingsObserver();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue