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

@ -11,8 +11,8 @@ import type { NostrLink } from "@snort/system";
import { Mention } from "./mention";
import { EventIcon, NostrEvent } from "./Event";
import { ExternalLink } from "./external-link";
import { useEvent } from "@/hooks/event";
import AsyncButton from "./async-button";
import { useEventFeed } from "@snort/system-react";
interface MediaURLProps {
url: URL;
@ -43,7 +43,7 @@ export function MediaURL({ url, children }: MediaURLProps) {
}
export function CollapsibleEvent({ link }: { link: NostrLink }) {
const event = useEvent(link);
const event = useEventFeed(link);
const [open, setOpen] = useState(false);
const author = event?.pubkey || link.author;