mirror of
https://github.com/luxfi/dex.git
synced 2026-09-24 00:26:31 +00:00
refactor(docs): use @hanzo/mdx/components for all MDX components
Single import path for Card, Tabs, Steps, Callout, Accordion, TypeTable
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import type { MDXComponents } from "mdx/types"
|
||||
import { defaultMdxComponents } from "@hanzo/ui"
|
||||
import {
|
||||
Tab,
|
||||
Tabs,
|
||||
defaultMdxComponents,
|
||||
Card,
|
||||
Cards,
|
||||
Tab,
|
||||
Tabs,
|
||||
Step,
|
||||
Steps,
|
||||
Callout,
|
||||
Accordion,
|
||||
Accordions,
|
||||
} from "@hanzo/ui/content"
|
||||
import { TypeTable } from "@hanzo/ui/docs/components"
|
||||
TypeTable,
|
||||
} from "@hanzo/mdx/components"
|
||||
|
||||
export function useMDXComponents(components: MDXComponents): MDXComponents {
|
||||
return {
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@
|
||||
"postinstall": "hanzo-mdx"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hanzo/mdx": "^14.1.0",
|
||||
"@hanzo/ui": "^5.3.26",
|
||||
"@hanzo/mdx": "^14.2.0",
|
||||
"@hanzo/ui": "^5.3.28",
|
||||
"lucide-react": "^0.468.0",
|
||||
"next": "16.0.1",
|
||||
"next-themes": "^0.4.6",
|
||||
|
||||
Reference in New Issue
Block a user