From 6789ca00a8f0354fd7bb2964a1299be8c289dddb Mon Sep 17 00:00:00 2001 From: YouXam Date: Fri, 21 Jun 2024 02:15:52 +0800 Subject: [PATCH] Update item.tsx --- src/components/item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/item.tsx b/src/components/item.tsx index e561efa..ef889be 100644 --- a/src/components/item.tsx +++ b/src/components/item.tsx @@ -47,7 +47,7 @@ function ItemCard({ children, progress, onCancel }: { children: React.ReactNode, function ItemCover({ src, alt, index, className, onClick }: { index?: number, src: string; alt: string, className?: string, onClick?: () => void }) { const imgRef = useRef(null); const [isError, setIsError] = useState(false); - + return (<>{src}) return (
{ if (!isError && onClick) {