something
This commit is contained in:
parent
0b6b17f4f9
commit
c52b56871c
@ -92,15 +92,15 @@ export default function Text({ content, tags, creator, disableMedia, depth }: Te
|
|||||||
const cashu = getDecodedToken(a);
|
const cashu = getDecodedToken(a);
|
||||||
if (cashu && cashu.token[0].proofs) {
|
if (cashu && cashu.token[0].proofs) {
|
||||||
return (
|
return (
|
||||||
<div className="note-invoice">
|
<div className="note-invoice" style={{ paddingRight: "0px" }}>
|
||||||
<div className="flex f-between">
|
<div className="flex f-between">
|
||||||
<div>
|
<div>
|
||||||
<h4>Cashu token</h4>
|
<h4>Cashu token</h4>
|
||||||
<p>Amount: {cashu.token[0].proofs.reduce((acc, v) => (acc += v.amount), 0)} sats</p>
|
<p>Amount: {cashu.token[0].proofs.reduce((acc, v) => (acc += v.amount), 0)} sats</p>
|
||||||
<p style={{ fontSize: "0.7em" }}>Mint: {cashu.token[0].mint}</p>
|
<p style={{ fontSize: "0.6em" }}>Mint: {cashu.token[0].mint}</p>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ marginLeft: "auto" }}>
|
<div>
|
||||||
<button type="button" onClick={() => copyToken(a)}>
|
<button style={{ margin: "5px" }} type="button" onClick={() => copyToken(a)}>
|
||||||
<FormattedMessage defaultMessage="Copy" description="Button: Copy Cashu token" />
|
<FormattedMessage defaultMessage="Copy" description="Button: Copy Cashu token" />
|
||||||
</button>
|
</button>
|
||||||
<button type="button" onClick={() => redeemToken(a)}>
|
<button type="button" onClick={() => redeemToken(a)}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user