mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix(site): resolve biome lint warnings (#602)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
4efb94cd88
commit
5098b1b5ee
@@ -29,7 +29,6 @@ export function PreferenceSync() {
|
||||
}
|
||||
}, [framework]);
|
||||
|
||||
// Workaround: Astro SSR logs false "Invalid hook call" when a React
|
||||
// component with hooks returns null. See withastro/astro#12283.
|
||||
// biome-ignore lint/complexity/noUselessFragments: Astro SSR logs false "Invalid hook call" when a React component with hooks returns null. See withastro/astro#12283.
|
||||
return <></>;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ export function PreferenceUpdater({ currentFramework }: PreferenceUpdaterProps)
|
||||
styleStore.set(style);
|
||||
}, [currentFramework]);
|
||||
|
||||
// Workaround: Astro SSR logs false "Invalid hook call" when a React
|
||||
// component with hooks returns null. See withastro/astro#12283.
|
||||
// biome-ignore lint/complexity/noUselessFragments: Astro SSR logs false "Invalid hook call" when a React component with hooks returns null. See withastro/astro#12283.
|
||||
return <></>;
|
||||
}
|
||||
|
||||
@@ -12,8 +12,7 @@ export function TableOfContents({ headings }: TableOfContentsProps) {
|
||||
const activeId = useActiveHeading(filteredHeadings);
|
||||
|
||||
if (filteredHeadings.length === 0) {
|
||||
// Workaround: Astro SSR logs false "Invalid hook call" when a React
|
||||
// component with hooks returns null. See withastro/astro#12283.
|
||||
// biome-ignore lint/complexity/noUselessFragments: Astro SSR logs false "Invalid hook call" when a React component with hooks returns null. See withastro/astro#12283.
|
||||
return <></>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user