fix(ci): format pipeline extensions and plugin icon hook (#2623)

This commit is contained in:
RockChinQ
2026-10-02 02:18:07 +08:00
committed by GitHub
parent 1b320aefd0
commit 8549369d48
2 changed files with 11 additions and 3 deletions
@@ -12,7 +12,15 @@ import {
DialogFooter,
} from '@/components/ui/dialog';
import { Checkbox } from '@/components/ui/checkbox';
import { CircleHelp, Plus, X, Server, Wrench, Sparkles, Puzzle } from 'lucide-react';
import {
CircleHelp,
Plus,
X,
Server,
Wrench,
Sparkles,
Puzzle,
} from 'lucide-react';
import { Badge } from '@/components/ui/badge';
import { Switch } from '@/components/ui/switch';
import { Label } from '@/components/ui/label';
@@ -56,8 +56,8 @@ export function useInstalledPluginIcon(
marketplaceURL?: string | null,
): string | null {
const key = author && name ? `${author}/${name}` : null;
const [url, setUrl] = useState<string | null>(() =>
marketplaceURL ?? (key ? iconCache.get(key)?.url ?? null : null),
const [url, setUrl] = useState<string | null>(
() => marketplaceURL ?? (key ? (iconCache.get(key)?.url ?? null) : null),
);
useEffect(() => {