mirror of
https://github.com/dergigi/boris.git
synced 2026-01-16 13:24:20 +01:00
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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user