refactor: simplify useEventReactions hook

This commit is contained in:
2023-11-14 12:55:46 +00:00
parent c794a9e393
commit 7174ed2502
8 changed files with 14 additions and 28 deletions

View File

@ -36,7 +36,7 @@ export function NoteInner(props: NoteProps) {
const { isEventMuted } = useModeration();
const { ref, inView } = useInView({ triggerOnce: true });
const { reactions, reposts, deletions, zaps } = useEventReactions(ev, related);
const { reactions, reposts, deletions, zaps } = useEventReactions(NostrLink.fromEvent(ev), related);
const login = useLogin();
const { pinned, bookmarked } = login;
const { publisher, system } = useEventPublisher();