mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
chore: run format
This commit is contained in:
@@ -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))`;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user