From 8bccc9de4842e2b27389b429468a4a6f9a0b77c0 Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 15 Oct 2025 16:27:05 +0200 Subject: [PATCH] fix: remove unused articleImage prop from CompactView --- src/components/BookmarkItem.tsx | 3 ++- src/components/BookmarkViews/CompactView.tsx | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/BookmarkItem.tsx b/src/components/BookmarkItem.tsx index 381678aa..f842879a 100644 --- a/src/components/BookmarkItem.tsx +++ b/src/components/BookmarkItem.tsx @@ -142,7 +142,8 @@ export const BookmarkItem: React.FC = ({ bookmark, index, onS } if (viewMode === 'compact') { - return + const { articleImage: _articleImage, ...compactProps } = sharedProps + return } if (viewMode === 'large') { diff --git a/src/components/BookmarkViews/CompactView.tsx b/src/components/BookmarkViews/CompactView.tsx index 93c186d3..46e06240 100644 --- a/src/components/BookmarkViews/CompactView.tsx +++ b/src/components/BookmarkViews/CompactView.tsx @@ -12,7 +12,6 @@ interface CompactViewProps { hasUrls: boolean extractedUrls: string[] onSelectUrl?: (url: string, bookmark?: { id: string; kind: number; tags: string[][]; pubkey: string }) => void - articleImage?: string articleSummary?: string contentTypeIcon: IconDefinition } @@ -23,7 +22,6 @@ export const CompactView: React.FC = ({ hasUrls, extractedUrls, onSelectUrl, - articleImage, articleSummary, contentTypeIcon }) => {