From 919bb8151f4137ae1b4c4e0287638e1d88de8602 Mon Sep 17 00:00:00 2001 From: Gigi Date: Mon, 13 Oct 2025 20:14:54 +0200 Subject: [PATCH] fix: resolve linting and type checking issues - Replace 'any' type with proper UserSettings type in CompactView - Fix import path for UserSettings from services/settingsService - Resolve @typescript-eslint/no-explicit-any warning - Ensure all TypeScript type checks pass - Maintain strict linting rules without removing any rules --- src/components/BookmarkViews/CompactView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/BookmarkViews/CompactView.tsx b/src/components/BookmarkViews/CompactView.tsx index 2a2ee8ea..86613d4b 100644 --- a/src/components/BookmarkViews/CompactView.tsx +++ b/src/components/BookmarkViews/CompactView.tsx @@ -5,6 +5,7 @@ import { IndividualBookmark } from '../../types/bookmarks' import { formatDateCompact } from '../../utils/bookmarkUtils' import ContentWithResolvedProfiles from '../ContentWithResolvedProfiles' import { useImageCache } from '../../hooks/useImageCache' +import { UserSettings } from '../../services/settingsService' interface CompactViewProps { bookmark: IndividualBookmark @@ -14,7 +15,7 @@ interface CompactViewProps { onSelectUrl?: (url: string, bookmark?: { id: string; kind: number; tags: string[][]; pubkey: string }) => void articleImage?: string articleSummary?: string - settings?: any + settings?: UserSettings } export const CompactView: React.FC = ({