Skip to content

Commit

Permalink
refactor: replace MDXProvider with custom MdxProvider and remove unus…
Browse files Browse the repository at this point in the history
…ed mdx-components
  • Loading branch information
Dougley committed Feb 24, 2025
1 parent b70afa0 commit 07cbe72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
7 changes: 2 additions & 5 deletions apps/web-new/app/components/mdx/MdxPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ import {
TypographyStylesProvider,
} from "@mantine/core";
import { useWindowScroll } from "@mantine/hooks";
import { MDXProvider } from "@mdx-js/react";
import { IconArrowUp } from "@tabler/icons-react";
import { useMDXComponents } from "mdx-components";
import { ReactNode } from "react";
import { TableOfContentsNav } from "~/components/mdx/TableOfContents/TableOfContents";
import { MdxProvider } from "./MdxProvider";

interface MdxPageProps {
title: string;
Expand Down Expand Up @@ -45,9 +44,7 @@ export function MdxPage({
<Divider my="lg" />
<div id="mdx">
<TypographyStylesProvider>
<MDXProvider components={useMDXComponents({})}>
{children}
</MDXProvider>
<MdxProvider>{children}</MdxProvider>
</TypographyStylesProvider>
</div>
<Affix position={{ bottom: 20, right: 20 }}>
Expand Down
12 changes: 0 additions & 12 deletions apps/web-new/mdx-components.tsx

This file was deleted.

0 comments on commit 07cbe72

Please sign in to comment.