Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 1f20907

Browse files
authored
Merge pull request #667 from mrfelton/fix/transaction-amount-hints
fix(activity): correct tooltips in activity log
2 parents 024e9bd + a6439f1 commit 1f20907

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

app/routes/activity/components/components/Invoice/Invoice.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@ const Invoice = ({ invoice, ticker, currentTicker, showActivityModal, currencyNa
3232
</Moment>
3333
</div>
3434
</div>
35-
<div className={`${styles.amount} ${invoice.settled ? styles.positive : styles.negative}`}>
36-
<span className="hint--top" data-hint="Invoice amount">
35+
<div
36+
className={`hint--top-left ${styles.amount} ${
37+
invoice.settled ? styles.positive : styles.negative
38+
}`}
39+
data-hint="Invoice amount"
40+
>
41+
<span>
3742
<i className={styles.plus}>+</i>
3843
<Value value={invoice.value} currency={ticker.currency} currentTicker={currentTicker} />
3944
<i> {currencyName}</i>

app/routes/activity/components/components/Payment/Payment.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,13 @@ const Payment = ({ payment, ticker, currentTicker, showActivityModal, nodes, cur
3535
<Moment format="h:mm a">{payment.creation_date * 1000}</Moment>
3636
</div>
3737
</div>
38-
<div className={styles.amount}>
39-
<span className="hint--top" data-hint="Payment amount">
38+
<div className={`hint--top-left ${styles.amount}`} data-hint="Payment amount">
39+
<span>
4040
<i className={styles.minus}>-</i>
4141
<Value value={payment.value} currency={ticker.currency} currentTicker={currentTicker} />
4242
<i> {currencyName}</i>
4343
</span>
44-
<span className="hint--bottom" data-hint="Payment fee">
45-
${btc.convert('sats', 'usd', payment.value, currentTicker.price_usd)}
46-
</span>
44+
<span>${btc.convert('sats', 'usd', payment.value, currentTicker.price_usd)}</span>
4745
</div>
4846
</div>
4947
)

app/routes/activity/components/components/Transaction/Transaction.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ const Transaction = ({ transaction, ticker, currentTicker, showActivityModal, cu
2727
<Moment format="h:mm a">{transaction.time_stamp * 1000}</Moment>
2828
</div>
2929
</div>
30-
<div className={`${styles.amount} ${transaction.received ? styles.positive : styles.negative}`}>
31-
<span className="hint--top" data-hint="Transaction amount">
30+
<div
31+
className={`hint--top-left ${styles.amount} ${
32+
transaction.received ? styles.positive : styles.negative
33+
}`}
34+
data-hint="Transaction amount"
35+
>
36+
<span>
3237
<i className={transaction.received ? styles.plus : styles.minus}>
3338
{transaction.received ? '+' : '-'}
3439
</i>
@@ -39,9 +44,7 @@ const Transaction = ({ transaction, ticker, currentTicker, showActivityModal, cu
3944
/>
4045
<i> {currencyName}</i>
4146
</span>
42-
<span className="hint--bottom" data-hint="Transaction fee">
43-
${btc.convert('sats', 'usd', transaction.amount, currentTicker.price_usd)}
44-
</span>
47+
<span>${btc.convert('sats', 'usd', transaction.amount, currentTicker.price_usd)}</span>
4548
</div>
4649
</div>
4750
)

0 commit comments

Comments
 (0)