Browse Source

Merge pull request #627 from mrfelton/fix/settled-invoice-icon

fix(activity): show icon for paid invoices
renovate/lint-staged-8.x
JimmyMow 7 years ago
committed by GitHub
parent
commit
20ac11fb77
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      app/routes/activity/components/components/Invoice/Invoice.js

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

@ -13,16 +13,14 @@ const Invoice = ({ invoice, ticker, currentTicker, showActivityModal, currencyNa
className={`${styles.container} ${!invoice.settled && styles.unpaid}`}
onClick={() => showActivityModal('INVOICE', { invoice })}
>
{!invoice.settled && (
<div className={styles.activityTypeIcon}>
<section
className="hint--bottom"
data-hint={`Lightning invoice${!invoice.settled ? ' (unpaid)' : undefined}`}
>
<Isvg src={checkmarkIcon} />
</section>
</div>
)}
<div className={styles.activityTypeIcon}>
<section
className="hint--bottom"
data-hint={`Lightning invoice (${invoice.settled ? 'paid)' : 'unpaid'})`}
>
<Isvg src={checkmarkIcon} />
</section>
</div>
<div className={styles.data}>
<div className={styles.title}>

Loading…
Cancel
Save