Skip to content

Commit

Permalink
♻️ Remove condition from transactionOverview
Browse files Browse the repository at this point in the history
  • Loading branch information
massao committed Feb 1, 2019
1 parent 1cc4f2e commit 84559ae
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions src/components/transactions/transactionsOverview.js
Expand Up @@ -101,32 +101,30 @@ class TransactionsOverview extends React.Component {

return (
<div className={`transactions ${styles.activity}`}>
{ this.props.match.url !== Ulrs.walletV2.path &&
<header>
<h2 className={`${styles.title}`}>
{this.props.t('Transaction')}
{
hasTitle && (<span>{this.props.t(' of')} <span className={`${styles.accountTitle} account-title`}>{accountTitle}</span></span>)
}
</h2>
{
this.props.match.url === Ulrs.wallet.path &&
(
<div className={`${styles.headerButtons}`}>
<Link to={`${Ulrs.request.path}`} className={'help-onboarding tx-receive-bt'}>
<FontIcon>request-token</FontIcon>
{this.props.t('Request')}
</Link>
<Link to={`${Ulrs.send.path}?wallet`} className={'tx-send-bt'}>
<ActionButton>
{this.props.t('Send')}
</ActionButton>
</Link>
</div>
)
}
</header>
}
<header>
<h2 className={`${styles.title}`}>
{this.props.t('Transaction')}
{
hasTitle && (<span>{this.props.t(' of')} <span className={`${styles.accountTitle} account-title`}>{accountTitle}</span></span>)
}
</h2>
{
this.props.match.url === Ulrs.wallet.path &&
(
<div className={`${styles.headerButtons}`}>
<Link to={`${Ulrs.request.path}`} className={'help-onboarding tx-receive-bt'}>
<FontIcon>request-token</FontIcon>
{this.props.t('Request')}
</Link>
<Link to={`${Ulrs.send.path}?wallet`} className={'tx-send-bt'}>
<ActionButton>
{this.props.t('Send')}
</ActionButton>
</Link>
</div>
)
}
</header>
{this.shouldShowEmptyState() ?
<EmptyState title={this.props.t('No transactions yet')}
message={this.props.t('The Wallet will show your recent transactions.')} /> :
Expand Down

0 comments on commit 84559ae

Please sign in to comment.