From 44fb63fc59f53061dc14fa0c9c1b2f90c25be863 Mon Sep 17 00:00:00 2001 From: Gigi Date: Mon, 13 Oct 2025 00:12:25 +0200 Subject: [PATCH] fix: resolve linting errors in HighlightItem - Remove unused handleDeleteClick function (replaced by handleMenuDeleteClick) - Remove onSelectUrl from destructuring (not used after menu refactor) - Add comment explaining onSelectUrl is kept in props for API compatibility --- src/components/HighlightItem.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/HighlightItem.tsx b/src/components/HighlightItem.tsx index 92135588..a2a6d641 100644 --- a/src/components/HighlightItem.tsx +++ b/src/components/HighlightItem.tsx @@ -32,7 +32,7 @@ interface HighlightItemProps { export const HighlightItem: React.FC = ({ highlight, - onSelectUrl, + // onSelectUrl is not used but kept in props for API compatibility isSelected, onHighlightClick, relayPool, @@ -242,11 +242,6 @@ export const HighlightItem: React.FC = ({ // Check if current user can delete this highlight const canDelete = activeAccount && highlight.pubkey === activeAccount.pubkey - const handleDeleteClick = (e: React.MouseEvent) => { - e.stopPropagation() - setShowDeleteConfirm(true) - } - const handleConfirmDelete = async () => { if (!activeAccount || !relayPool) { console.warn('Cannot delete: no account or relay pool')