mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-21 16:05:19 +08:00
fix(ci): format pipeline extensions and plugin icon hook (#2623)
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user