Skip to content

Commit

Permalink
[components/MdxContent][s]: reverted dyn import
Browse files Browse the repository at this point in the history
  • Loading branch information
olayway committed Jun 7, 2022
1 parent 1ae7095 commit 5524c73
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions site/components/MdxContent.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
import React from "react";
import Head from "next/head";
import dynamic from "next/dynamic";
import { useMDXComponent } from "next-contentlayer/hooks";

import useHeadingsObserver from "../hooks/useHeadingsObserver";
import { Paragraph } from "./Paragraph";
import { Anchor } from "./Anchor";
import { Heading } from "./Heading";
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();
Expand Down

0 comments on commit 5524c73

Please sign in to comment.