feat: render zap goals

This commit is contained in:
2023-08-20 22:51:56 +01:00
parent d06d6afbf7
commit 35423cc91b
9 changed files with 92 additions and 15 deletions

View File

@ -34,6 +34,7 @@ import PubkeyList from "Element/PubkeyList";
import { LiveEvent } from "Element/LiveEvent";
import { NoteContextMenu, NoteTranslation } from "Element/NoteContextMenu";
import Reactions from "Element/Reactions";
import { ZapGoal } from "Element/ZapGoal";
import messages from "./messages";
@ -91,6 +92,9 @@ export default function Note(props: NoteProps) {
if (ev.kind === EventKind.LiveEvent) {
return <LiveEvent ev={ev} />;
}
if (ev.kind === (9041 as EventKind)) {
return <ZapGoal ev={ev} />;
}
const baseClassName = `note card${className ? ` ${className}` : ""}`;
const navigate = useNavigate();