diff --git a/web/src/components/Image.tsx b/web/src/components/Image.tsx deleted file mode 100644 index 3943f19d..00000000 --- a/web/src/components/Image.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import showPreviewImageDialog from "./PreviewImageDialog"; -import "@/less/image.less"; - -interface Props { - imgUrls: string[]; - index: number; - className?: string; -} - -const Image: React.FC = (props: Props) => { - const { className, imgUrls, index } = props; - - const handleImageClick = () => { - showPreviewImageDialog(imgUrls, index); - }; - - return ( -
- -
- ); -}; - -export default Image; diff --git a/web/src/components/MemoResourceListView.tsx b/web/src/components/MemoResourceListView.tsx index 6c8ac162..f5fd8df3 100644 --- a/web/src/components/MemoResourceListView.tsx +++ b/web/src/components/MemoResourceListView.tsx @@ -49,7 +49,6 @@ const MemoResourceListView: React.FC = (props: Props) => { src={getResourceUrl(imageResourceList[0])} onClick={() => handleImageClick(getResourceUrl(imageResourceList[0]))} decoding="async" - loading="lazy" /> ) : ( @@ -71,7 +70,6 @@ const MemoResourceListView: React.FC = (props: Props) => { src={resource.externalLink ? url : url + "?thumbnail=1"} onClick={() => handleImageClick(url)} decoding="async" - loading="lazy" /> );