From bd0e07598449f385fbbacf2570c4bd029c5b78ec Mon Sep 17 00:00:00 2001 From: Gigi Date: Sat, 25 Oct 2025 01:37:04 +0200 Subject: [PATCH] fix: remove unused variables to resolve linting errors - Remove unused imageLoading and imageError state variables - Clean up CardView component to pass ESLint checks - Maintain all existing functionality while fixing linting issues --- src/components/BookmarkViews/CardView.tsx | 11 ++---- src/styles/components/cards.css | 41 ----------------------- 2 files changed, 3 insertions(+), 49 deletions(-) diff --git a/src/components/BookmarkViews/CardView.tsx b/src/components/BookmarkViews/CardView.tsx index 026eeebd..687be073 100644 --- a/src/components/BookmarkViews/CardView.tsx +++ b/src/components/BookmarkViews/CardView.tsx @@ -71,9 +71,6 @@ export const CardView: React.FC = ({ } }, [firstUrl, articleImage, instantPreview, ogImage]) - // Add loading state for images - const [imageLoading, setImageLoading] = useState(false) - const [imageError, setImageError] = useState(false) const triggerOpen = () => handleReadNow({ preventDefault: () => {} } as React.MouseEvent) @@ -117,11 +114,6 @@ export const CardView: React.FC = ({ onKeyDown={handleKeyDown} >
- {/* Bookmark type icon in top-left corner */} -
- -
-
{(cachedImage || firstUrl) && ( @@ -139,6 +131,9 @@ export const CardView: React.FC = ({ )}
+ + + {getInternalRoute() ? (