mirror of
https://github.com/dergigi/boris.git
synced 2026-01-25 01:34:30 +01:00
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:
@@ -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)}`
|
||||
|
||||
Reference in New Issue
Block a user