Browse Source

fix(activity): show icon for paid invoices

Fix: #625
renovate/lint-staged-8.x
Tom Kirkpatrick 7 years ago
parent
commit
87bc9cb063
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  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 ? ' (unpaid)' : undefined}`}
>
<Isvg src={checkmarkIcon} />
</section>
</div>
<div className={styles.data}>
<div className={styles.title}>

Loading…
Cancel
Save