Browse Source

Merge pull request #811 from mrfelton/fix/hide-expired-toggle-for-empty-wallet

fix(wallet): hide expired toggle for empty wallet
renovate/lint-staged-8.x
JimmyMow 6 years ago
committed by GitHub
parent
commit
8e1db06211
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      app/components/Activity/Activity.js

23
app/components/Activity/Activity.js

@ -218,17 +218,18 @@ class Activity extends Component {
</ul>
</li>
))}
{showExpiredToggle && (
<li>
<div className={styles.toggleExpired} onClick={toggleExpiredRequests}>
{showExpiredRequests ? (
<FormattedMessage {...messages.hide_expired} />
) : (
<FormattedMessage {...messages.show_expired} />
)}
</div>
</li>
)}
{showExpiredToggle &&
currentActivity.length > 0 && (
<li>
<div className={styles.toggleExpired} onClick={toggleExpiredRequests}>
{showExpiredRequests ? (
<FormattedMessage {...messages.hide_expired} />
) : (
<FormattedMessage {...messages.show_expired} />
)}
</div>
</li>
)}
</ul>
</div>
</div>

Loading…
Cancel
Save