forked from Kieran/snort
feat: render kind 3
This commit is contained in:
parent
6650c48c98
commit
6e73e51501
@ -2,7 +2,7 @@ import { NostrEvent } from "@snort/system";
|
|||||||
import { FormattedMessage, FormattedNumber } from "react-intl";
|
import { FormattedMessage, FormattedNumber } from "react-intl";
|
||||||
import { LNURL } from "@snort/shared";
|
import { LNURL } from "@snort/shared";
|
||||||
|
|
||||||
import { dedupe, hexToBech32 } from "SnortUtils";
|
import { dedupe, findTag, hexToBech32 } from "SnortUtils";
|
||||||
import FollowListBase from "Element/User/FollowListBase";
|
import FollowListBase from "Element/User/FollowListBase";
|
||||||
import AsyncButton from "Element/AsyncButton";
|
import AsyncButton from "Element/AsyncButton";
|
||||||
import { useWallet } from "Wallet";
|
import { useWallet } from "Wallet";
|
||||||
@ -66,12 +66,12 @@ export default function PubkeyList({ ev, className }: { ev: NostrEvent; classNam
|
|||||||
pubkeys={ids}
|
pubkeys={ids}
|
||||||
showAbout={true}
|
showAbout={true}
|
||||||
className={className}
|
className={className}
|
||||||
title={ev.tags.find(a => a[0] === "d")?.[1]}
|
title={findTag(ev, "title") ?? findTag(ev, "d")}
|
||||||
actions={
|
actions={
|
||||||
<>
|
<>
|
||||||
<AsyncButton className="mr5 transparent" onClick={() => zapAll()}>
|
<AsyncButton className="mr5 secondary" onClick={() => zapAll()}>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Zap All {n} sats"
|
defaultMessage="Zap all {n} sats"
|
||||||
values={{
|
values={{
|
||||||
n: <FormattedNumber value={login.preferences.defaultZapAmount * ids.length} />,
|
n: <FormattedNumber value={login.preferences.defaultZapAmount * ids.length} />,
|
||||||
}}
|
}}
|
||||||
|
@ -48,7 +48,7 @@ export default function Note(props: NoteProps) {
|
|||||||
if (ev.kind === EventKind.ZapstrTrack) {
|
if (ev.kind === EventKind.ZapstrTrack) {
|
||||||
return <ZapstrEmbed ev={ev} />;
|
return <ZapstrEmbed ev={ev} />;
|
||||||
}
|
}
|
||||||
if (ev.kind === EventKind.PubkeyLists) {
|
if (ev.kind === EventKind.PubkeyLists || ev.kind === EventKind.ContactList) {
|
||||||
return <PubkeyList ev={ev} className={className} />;
|
return <PubkeyList ev={ev} className={className} />;
|
||||||
}
|
}
|
||||||
if (ev.kind === EventKind.LiveEvent) {
|
if (ev.kind === EventKind.LiveEvent) {
|
||||||
|
@ -292,9 +292,6 @@
|
|||||||
"defaultMessage": "Parent",
|
"defaultMessage": "Parent",
|
||||||
"description": "Link to parent note in thread"
|
"description": "Link to parent note in thread"
|
||||||
},
|
},
|
||||||
"AGNz71": {
|
|
||||||
"defaultMessage": "Zap All {n} sats"
|
|
||||||
},
|
|
||||||
"AN0Z7Q": {
|
"AN0Z7Q": {
|
||||||
"defaultMessage": "Muted Words"
|
"defaultMessage": "Muted Words"
|
||||||
},
|
},
|
||||||
@ -528,6 +525,9 @@
|
|||||||
"IUZC+0": {
|
"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."
|
"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": {
|
"Ig9/a1": {
|
||||||
"defaultMessage": "Sent {n} sats to {name}"
|
"defaultMessage": "Sent {n} sats to {name}"
|
||||||
},
|
},
|
||||||
|
@ -95,7 +95,6 @@
|
|||||||
"9pMqYs": "Nostr Address",
|
"9pMqYs": "Nostr Address",
|
||||||
"9wO4wJ": "Lightning Invoice",
|
"9wO4wJ": "Lightning Invoice",
|
||||||
"ADmfQT": "Parent",
|
"ADmfQT": "Parent",
|
||||||
"AGNz71": "Zap All {n} sats",
|
|
||||||
"AN0Z7Q": "Muted Words",
|
"AN0Z7Q": "Muted Words",
|
||||||
"ASRK0S": "This author has been muted",
|
"ASRK0S": "This author has been muted",
|
||||||
"Adk34V": "Setup your Profile",
|
"Adk34V": "Setup your Profile",
|
||||||
@ -173,6 +172,7 @@
|
|||||||
"IKKHqV": "Follows",
|
"IKKHqV": "Follows",
|
||||||
"INSqIz": "Twitter username...",
|
"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.",
|
"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}",
|
"Ig9/a1": "Sent {n} sats to {name}",
|
||||||
"IoQq+a": "Click here to load anyway",
|
"IoQq+a": "Click here to load anyway",
|
||||||
"Ix8l+B": "Trending Notes",
|
"Ix8l+B": "Trending Notes",
|
||||||
|
Loading…
Reference in New Issue
Block a user