feat: render kind 3

This commit is contained in:
Kieran 2023-10-12 15:54:46 +01:00
parent 6650c48c98
commit 6e73e51501
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
4 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@ import { NostrEvent } from "@snort/system";
import { FormattedMessage, FormattedNumber } from "react-intl";
import { LNURL } from "@snort/shared";
import { dedupe, hexToBech32 } from "SnortUtils";
import { dedupe, findTag, hexToBech32 } from "SnortUtils";
import FollowListBase from "Element/User/FollowListBase";
import AsyncButton from "Element/AsyncButton";
import { useWallet } from "Wallet";
@ -66,12 +66,12 @@ export default function PubkeyList({ ev, className }: { ev: NostrEvent; classNam
pubkeys={ids}
showAbout={true}
className={className}
title={ev.tags.find(a => a[0] === "d")?.[1]}
title={findTag(ev, "title") ?? findTag(ev, "d")}
actions={
<>
<AsyncButton className="mr5 transparent" onClick={() => zapAll()}>
<AsyncButton className="mr5 secondary" onClick={() => zapAll()}>
<FormattedMessage
defaultMessage="Zap All {n} sats"
defaultMessage="Zap all {n} sats"
values={{
n: <FormattedNumber value={login.preferences.defaultZapAmount * ids.length} />,
}}

View File

@ -48,7 +48,7 @@ export default function Note(props: NoteProps) {
if (ev.kind === EventKind.ZapstrTrack) {
return <ZapstrEmbed ev={ev} />;
}
if (ev.kind === EventKind.PubkeyLists) {
if (ev.kind === EventKind.PubkeyLists || ev.kind === EventKind.ContactList) {
return <PubkeyList ev={ev} className={className} />;
}
if (ev.kind === EventKind.LiveEvent) {

View File

@ -292,9 +292,6 @@
"defaultMessage": "Parent",
"description": "Link to parent note in thread"
},
"AGNz71": {
"defaultMessage": "Zap All {n} sats"
},
"AN0Z7Q": {
"defaultMessage": "Muted Words"
},
@ -528,6 +525,9 @@
"IUZC+0": {
"defaultMessage": "This means that nobody can modify notes which you have created and everybody can easily verify that the notes they are reading are created by you."
},
"IVbtTS": {
"defaultMessage": "Zap all {n} sats"
},
"Ig9/a1": {
"defaultMessage": "Sent {n} sats to {name}"
},

View File

@ -95,7 +95,6 @@
"9pMqYs": "Nostr Address",
"9wO4wJ": "Lightning Invoice",
"ADmfQT": "Parent",
"AGNz71": "Zap All {n} sats",
"AN0Z7Q": "Muted Words",
"ASRK0S": "This author has been muted",
"Adk34V": "Setup your Profile",
@ -173,6 +172,7 @@
"IKKHqV": "Follows",
"INSqIz": "Twitter username...",
"IUZC+0": "This means that nobody can modify notes which you have created and everybody can easily verify that the notes they are reading are created by you.",
"IVbtTS": "Zap all {n} sats",
"Ig9/a1": "Sent {n} sats to {name}",
"IoQq+a": "Click here to load anyway",
"Ix8l+B": "Trending Notes",