something

This commit is contained in:
callebtc 2023-05-09 16:36:25 +02:00 committed by Kieran
parent 0b6b17f4f9
commit c52b56871c
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 4 additions and 4 deletions

View File

@ -92,15 +92,15 @@ export default function Text({ content, tags, creator, disableMedia, depth }: Te
const cashu = getDecodedToken(a);
if (cashu && cashu.token[0].proofs) {
return (
<div className="note-invoice">
<div className="note-invoice" style={{ paddingRight: "0px" }}>
<div className="flex f-between">
<div>
<h4>Cashu token</h4>
<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 style={{ marginLeft: "auto" }}>
<button type="button" onClick={() => copyToken(a)}>
<div>
<button style={{ margin: "5px" }} type="button" onClick={() => copyToken(a)}>
<FormattedMessage defaultMessage="Copy" description="Button: Copy Cashu token" />
</button>
<button type="button" onClick={() => redeemToken(a)}>