chore: run format

This commit is contained in:
Vlad Frangu
2025-10-05 16:13:56 +03:00
parent 2a712d4909
commit 8dc1692d87
189 changed files with 3172 additions and 916 deletions

View File

@@ -10,7 +10,9 @@ export default function Layout({ children }: { readonly children: ReactNode }) {
tabs: {
transform(option, node) {
const meta = source.getNodeMeta(node);
if (!meta || !node.icon) return option;
if (!meta || !node.icon) {
return option;
}
// category selection color based on path src/styles/base.css
const color = `var(--${meta.file.path.split('/')[0]}-color, var(--color-fd-foreground))`;

View File

@@ -11,7 +11,10 @@ export function Mermaid({ chart }: { readonly chart: string }) {
const { resolvedTheme } = useTheme();
useEffect(() => {
if (currentChartRef.current === chart || !containerRef.current) return;
if (currentChartRef.current === chart || !containerRef.current) {
return;
}
const container = containerRef.current;
currentChartRef.current = chart;