mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: mdx-components formatting with biome
This commit is contained in:
@@ -3,17 +3,17 @@ import defaultComponents from "fumadocs-ui/mdx";
|
|||||||
import type { MDXComponents } from "mdx/types";
|
import type { MDXComponents } from "mdx/types";
|
||||||
|
|
||||||
export function useMDXComponents(components: MDXComponents): MDXComponents {
|
export function useMDXComponents(components: MDXComponents): MDXComponents {
|
||||||
return {
|
return {
|
||||||
...defaultComponents,
|
...defaultComponents,
|
||||||
...components,
|
...components,
|
||||||
ImageZoom,
|
ImageZoom,
|
||||||
p: ({ children }) => (
|
p: ({ children }) => (
|
||||||
<p className="text-[#3E4342] dark:text-muted-foreground">{children}</p>
|
<p className="text-[#3E4342] dark:text-muted-foreground">{children}</p>
|
||||||
),
|
),
|
||||||
li: ({ children, id }) => (
|
li: ({ children, id }) => (
|
||||||
<li {...{ id }} className="text-[#3E4342] dark:text-muted-foreground">
|
<li {...{ id }} className="text-[#3E4342] dark:text-muted-foreground">
|
||||||
{children}
|
{children}
|
||||||
</li>
|
</li>
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user