From 7d2dac2f1aa18be6b2b0c39a79d5af677280a732 Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 23 Oct 2025 17:00:55 +0200 Subject: [PATCH] fix: remove unused props and clean up linting errors - Remove unused lastFetchTime parameter from BookmarkList - Remove unused loading and onRefresh parameters from HighlightsPanelHeader - Update HighlightsPanel to not pass removed props - All linting and type checking now passing --- src/components/BookmarkList.tsx | 1 - src/components/HighlightsPanel.tsx | 2 -- src/components/HighlightsPanel/HighlightsPanelHeader.tsx | 4 ---- 3 files changed, 7 deletions(-) diff --git a/src/components/BookmarkList.tsx b/src/components/BookmarkList.tsx index a5dfab36..9ea81de4 100644 --- a/src/components/BookmarkList.tsx +++ b/src/components/BookmarkList.tsx @@ -58,7 +58,6 @@ export const BookmarkList: React.FC = ({ onOpenSettings, onRefresh, isRefreshing, - lastFetchTime, loading = false, relayPool, isMobile = false, diff --git a/src/components/HighlightsPanel.tsx b/src/components/HighlightsPanel.tsx index 47fef3b1..712d86d2 100644 --- a/src/components/HighlightsPanel.tsx +++ b/src/components/HighlightsPanel.tsx @@ -118,13 +118,11 @@ export const HighlightsPanel: React.FC = ({ return (
0} showHighlights={showHighlights} highlightVisibility={highlightVisibility} currentUserPubkey={currentUserPubkey} onToggleHighlights={handleToggleHighlights} - onRefresh={onRefresh} onToggleCollapse={onToggleCollapse} onHighlightVisibilityChange={onHighlightVisibilityChange} isMobile={isMobile} diff --git a/src/components/HighlightsPanel/HighlightsPanelHeader.tsx b/src/components/HighlightsPanel/HighlightsPanelHeader.tsx index c560f8ae..bf7e2b03 100644 --- a/src/components/HighlightsPanel/HighlightsPanelHeader.tsx +++ b/src/components/HighlightsPanel/HighlightsPanelHeader.tsx @@ -5,26 +5,22 @@ import { HighlightVisibility } from '../HighlightsPanel' import IconButton from '../IconButton' interface HighlightsPanelHeaderProps { - loading: boolean hasHighlights: boolean showHighlights: boolean highlightVisibility: HighlightVisibility currentUserPubkey?: string onToggleHighlights: () => void - onRefresh?: () => void onToggleCollapse: () => void onHighlightVisibilityChange?: (visibility: HighlightVisibility) => void isMobile?: boolean } const HighlightsPanelHeader: React.FC = ({ - loading, hasHighlights, showHighlights, highlightVisibility, currentUserPubkey, onToggleHighlights, - onRefresh, onToggleCollapse, onHighlightVisibilityChange, isMobile = false