feat: favorite relays (#250)

This commit is contained in:
Cody Tseng
2025-04-05 15:31:34 +08:00
committed by GitHub
parent fab9ff88b5
commit c739d9d28c
63 changed files with 1081 additions and 982 deletions

View File

@@ -1,4 +1,4 @@
import { GROUP_METADATA_EVENT_KIND } from '@/constants'
import { ExtendedKind } from '@/constants'
import { isSupportedKind } from '@/lib/event'
import { useMuteList } from '@/providers/MuteListProvider'
import { Event, kinds } from 'nostr-tools'
@@ -58,7 +58,7 @@ export default function GenericNoteCard({
<LiveEventCard event={event} className={className} reposter={reposter} embedded={embedded} />
)
}
if (event.kind === GROUP_METADATA_EVENT_KIND) {
if (event.kind === ExtendedKind.GROUP_METADATA) {
return (
<GroupMetadataCard
className={className}