Skip to content

Commit 0402ba8

Browse files
committed
remove unneeded mdx providers to allow build
1 parent 6a22a09 commit 0402ba8

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

typescript-sdk/apps/dojo/src/components/ui/mdx-components.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from "react";
22
import { cn } from "@/lib/utils";
33
import { MarkdownComponents } from "./markdown-components";
4-
import { MDXProvider } from "@mdx-js/react";
54
import type { Components } from "react-markdown";
65

76
// Video component specifically for MDX
@@ -34,12 +33,3 @@ export const MDXComponents: CustomMDXComponents = {
3433
Video: VideoPlayer,
3534
video: VideoPlayer,
3635
} as CustomMDXComponents;
37-
38-
// MDX Provider wrapper component
39-
export const MDXContent: React.FC<{ children: React.ReactNode }> = ({ children }) => {
40-
return (
41-
<MDXProvider components={MDXComponents}>
42-
<div className="mdx-content">{children}</div>
43-
</MDXProvider>
44-
);
45-
};

typescript-sdk/apps/dojo/src/utils/mdx-utils.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from "react";
22
import { MDXComponents } from "@/components/ui/mdx-components";
3-
import { MDXProvider } from "@mdx-js/react";
43
import ReactMarkdown from "react-markdown";
54

65
/**
@@ -40,7 +39,6 @@ export const MDXRenderer: React.FC<{
4039
if (!content) return null;
4140

4241
return (
43-
<MDXProvider components={MDXComponents}>
4442
<div className="mdx-content">
4543
{/* Render the markdown content with proper formatting */}
4644
<ReactMarkdown components={MDXComponents}>{content}</ReactMarkdown>
@@ -50,7 +48,6 @@ export const MDXRenderer: React.FC<{
5048
<div className="mt-4" dangerouslySetInnerHTML={{ __html: processedVideos }} />
5149
)}
5250
</div>
53-
</MDXProvider>
5451
);
5552
};
5653

0 commit comments

Comments
 (0)