fix: mdx-components formatting with biome

This commit is contained in:
seppulcro 2024-09-24 17:01:24 +01:00
parent 59386ed4b7
commit 4715f34e15

View File

@ -3,17 +3,17 @@ import defaultComponents from "fumadocs-ui/mdx";
import type { MDXComponents } from "mdx/types";
export function useMDXComponents(components: MDXComponents): MDXComponents {
return {
...defaultComponents,
...components,
ImageZoom,
p: ({ children }) => (
<p className="text-[#3E4342] dark:text-muted-foreground">{children}</p>
),
li: ({ children, id }) => (
<li {...{ id }} className="text-[#3E4342] dark:text-muted-foreground">
{children}
</li>
),
};
return {
...defaultComponents,
...components,
ImageZoom,
p: ({ children }) => (
<p className="text-[#3E4342] dark:text-muted-foreground">{children}</p>
),
li: ({ children, id }) => (
<li {...{ id }} className="text-[#3E4342] dark:text-muted-foreground">
{children}
</li>
),
};
}