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. 4
      app/routes/activity/components/components/Invoice/Invoice.js

4
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}`} className={`${styles.container} ${!invoice.settled && styles.unpaid}`}
onClick={() => showActivityModal('INVOICE', { invoice })} onClick={() => showActivityModal('INVOICE', { invoice })}
> >
{!invoice.settled && (
<div className={styles.activityTypeIcon}> <div className={styles.activityTypeIcon}>
<section <section
className="hint--bottom" className="hint--bottom"
data-hint={`Lightning invoice${!invoice.settled ? ' (unpaid)' : undefined}`} data-hint={`Lightning invoice (${invoice.settled ? 'paid)' : 'unpaid'})`}
> >
<Isvg src={checkmarkIcon} /> <Isvg src={checkmarkIcon} />
</section> </section>
</div> </div>
)}
<div className={styles.data}> <div className={styles.data}>
<div className={styles.title}> <div className={styles.title}>

Loading…
Cancel
Save