feat: remove buildDiff

This commit is contained in:
2024-07-04 11:25:26 +01:00
parent 8e84dc6a89
commit 4a48f4f340
6 changed files with 74 additions and 132 deletions

View File

@ -21,7 +21,7 @@ export default function NoteFooter(props: NoteFooterProps) {
const link = useMemo(() => NostrLink.fromEvent(ev), [ev.id]);
const [showReactions, setShowReactions] = useState(false);
const related = useReactions(`reactions:${link.tagKey}`, link);
const related = useReactions("reactions", link);
const { replies, reactions, zaps, reposts } = useEventReactions(link, related);
const { positive } = reactions;

View File

@ -25,7 +25,7 @@ const ReactionsModal = ({ onClose, event, initialTab = 0 }: ReactionsModalProps)
const link = NostrLink.fromEvent(event);
const related = useReactions(`reactions:${link.tagKey}`, link, undefined, false);
const related = useReactions("reactions", link, undefined, false);
const { reactions, zaps, reposts } = useEventReactions(link, related);
const { positive, negative } = reactions;