feat: poll response notification
This commit is contained in:
parent
20c712c56b
commit
bcd149b304
14 changed files with 209 additions and 93 deletions
|
|
@ -2,6 +2,7 @@ import { ExtendedKind } from '@/constants'
|
|||
import { useMuteList } from '@/providers/MuteListProvider'
|
||||
import { Event, kinds } from 'nostr-tools'
|
||||
import { CommentNotification } from './CommentNotification'
|
||||
import { PollResponseNotification } from './PollResponseNotification'
|
||||
import { ReactionNotification } from './ReactionNotification'
|
||||
import { ReplyNotification } from './ReplyNotification'
|
||||
import { RepostNotification } from './RepostNotification'
|
||||
|
|
@ -33,5 +34,8 @@ export function NotificationItem({
|
|||
if (notification.kind === ExtendedKind.COMMENT) {
|
||||
return <CommentNotification notification={notification} isNew={isNew} />
|
||||
}
|
||||
if (notification.kind === ExtendedKind.POLL_RESPONSE) {
|
||||
return <PollResponseNotification notification={notification} isNew={isNew} />
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue