Browse Source

walletInfo comp claim interest button if fix

v0.25
pbca26 7 years ago
parent
commit
1948ab8703
  1. 4
      react/src/components/dashboard/walletsInfo/walletsInfo.js
  2. 4
      react/src/components/dashboard/walletsInfo/walletsInfo.render.js
  3. 1
      react/src/components/overrides.scss

4
react/src/components/dashboard/walletsInfo/walletsInfo.js

@ -18,8 +18,8 @@ class WalletsInfo extends React.Component {
displayClaimInterestUI() { displayClaimInterestUI() {
if (this.props.ActiveCoin && if (this.props.ActiveCoin &&
this.props.ActiveCoin.balance && this.props.ActiveCoin.balance &&
this.props.ActiveCoin.balance.balance && this.props.ActiveCoin.balance.transparent &&
this.props.ActiveCoin.balance.balance > 0) { this.props.ActiveCoin.balance.transparent > 0) {
return true; return true;
} }
} }

4
react/src/components/dashboard/walletsInfo/walletsInfo.render.js

@ -49,7 +49,9 @@ const WalletsInfoRender = function() {
<button <button
type="button" type="button"
className="btn btn-success waves-effect waves-light margin-top-20 btn-next" className="btn btn-success waves-effect waves-light margin-top-20 btn-next"
onClick={ () => this.openClaimInterestModal() }>{ translate('CLAIM_INTEREST.CLAIM_INTEREST', ' ') }</button> onClick={ () => this.openClaimInterestModal() }>
<i className="icon fa-dollar"></i> { translate('CLAIM_INTEREST.CLAIM_INTEREST', ' ') }
</button>
</div> </div>
} }
</div> </div>

1
react/src/components/overrides.scss

@ -156,6 +156,7 @@ body {
display: inline-block; display: inline-block;
width: 40px; width: 40px;
height: 24px; height: 24px;
input { input {
display: none; display: none;
} }

Loading…
Cancel
Save