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> </ul>
</li> </li>
))} ))}
{showExpiredToggle && ( {showExpiredToggle &&
<li> currentActivity.length > 0 && (
<div className={styles.toggleExpired} onClick={toggleExpiredRequests}> <li>
{showExpiredRequests ? ( <div className={styles.toggleExpired} onClick={toggleExpiredRequests}>
<FormattedMessage {...messages.hide_expired} /> {showExpiredRequests ? (
) : ( <FormattedMessage {...messages.hide_expired} />
<FormattedMessage {...messages.show_expired} /> ) : (
)} <FormattedMessage {...messages.show_expired} />
</div> )}
</li> </div>
)} </li>
)}
</ul> </ul>
</div> </div>
</div> </div>

Loading…
Cancel
Save