fix: remove unused articleImage prop from CompactView

This commit is contained in:
Gigi
2025-10-15 16:27:05 +02:00
parent ec8584b4d2
commit 8bccc9de48
2 changed files with 2 additions and 3 deletions

View File

@@ -142,7 +142,8 @@ export const BookmarkItem: React.FC<BookmarkItemProps> = ({ bookmark, index, onS
}
if (viewMode === 'compact') {
return <CompactView {...sharedProps} />
const { articleImage: _articleImage, ...compactProps } = sharedProps
return <CompactView {...compactProps} />
}
if (viewMode === 'large') {

View File

@@ -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<CompactViewProps> = ({
hasUrls,
extractedUrls,
onSelectUrl,
articleImage,
articleSummary,
contentTypeIcon
}) => {