refactor: upgrade snort libs

This commit is contained in:
2024-01-15 12:22:19 +00:00
parent 0eb9c56442
commit 5c1a143a7d
20 changed files with 97 additions and 198 deletions

View File

@ -7,8 +7,8 @@ import { Goal } from "./goal";
import { Note } from "./note";
import { EmojiPack } from "./emoji-pack";
import { Badge } from "./badge";
import { useEvent } from "@/hooks/event";
import { EMOJI_PACK, GOAL } from "@/const";
import { useEventFeed } from "@snort/system-react";
interface EventProps {
link: NostrLink;
@ -71,6 +71,6 @@ export function NostrEvent({ ev }: { ev: NostrEventType }) {
}
export function Event({ link }: EventProps) {
const event = useEvent(link);
const event = useEventFeed(link);
return event ? <NostrEvent ev={event} /> : null;
}