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
This commit is contained in:
Gigi
2025-10-13 00:12:25 +02:00
parent 13a28d2dbd
commit 44fb63fc59

View File

@@ -32,7 +32,7 @@ interface HighlightItemProps {
export const HighlightItem: React.FC<HighlightItemProps> = ({
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<HighlightItemProps> = ({
// 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')