fix: resolve all linting and type checking issues

- Fix empty catch blocks in BookmarkItem and bookmarkService
- Replace any types with proper NostrEvent interface
- Add proper error handling with console.warn
- Use eslint-disable for unavoidable any types in applesauce integration
This commit is contained in:
Gigi
2025-10-02 11:26:12 +02:00
parent de428b8719
commit 3eca2879ef
2 changed files with 30 additions and 12 deletions

View File

@@ -11,7 +11,11 @@ interface BookmarkItemProps {
export const BookmarkItem: React.FC<BookmarkItemProps> = ({ bookmark, index }) => {
const copy = async (text: string) => {
try { await navigator.clipboard.writeText(text) } catch {}
try {
await navigator.clipboard.writeText(text)
} catch (error) {
console.warn('Failed to copy to clipboard:', error)
}
}
const short = (v: string) => `${v.slice(0, 8)}...${v.slice(-8)}`