From 1948ab87033e692925f7d2253450d8e322a2675f Mon Sep 17 00:00:00 2001 From: pbca26 Date: Thu, 2 Nov 2017 02:18:48 +0300 Subject: [PATCH] walletInfo comp claim interest button if fix --- react/src/components/dashboard/walletsInfo/walletsInfo.js | 4 ++-- .../components/dashboard/walletsInfo/walletsInfo.render.js | 4 +++- react/src/components/overrides.scss | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/react/src/components/dashboard/walletsInfo/walletsInfo.js b/react/src/components/dashboard/walletsInfo/walletsInfo.js index 6366b1c..e299a88 100644 --- a/react/src/components/dashboard/walletsInfo/walletsInfo.js +++ b/react/src/components/dashboard/walletsInfo/walletsInfo.js @@ -18,8 +18,8 @@ class WalletsInfo extends React.Component { displayClaimInterestUI() { if (this.props.ActiveCoin && this.props.ActiveCoin.balance && - this.props.ActiveCoin.balance.balance && - this.props.ActiveCoin.balance.balance > 0) { + this.props.ActiveCoin.balance.transparent && + this.props.ActiveCoin.balance.transparent > 0) { return true; } } diff --git a/react/src/components/dashboard/walletsInfo/walletsInfo.render.js b/react/src/components/dashboard/walletsInfo/walletsInfo.render.js index dd9c120..e248442 100644 --- a/react/src/components/dashboard/walletsInfo/walletsInfo.render.js +++ b/react/src/components/dashboard/walletsInfo/walletsInfo.render.js @@ -49,7 +49,9 @@ const WalletsInfoRender = function() { + onClick={ () => this.openClaimInterestModal() }> + { translate('CLAIM_INTEREST.CLAIM_INTEREST', ' ') } + } diff --git a/react/src/components/overrides.scss b/react/src/components/overrides.scss index 1331328..9778930 100644 --- a/react/src/components/overrides.scss +++ b/react/src/components/overrides.scss @@ -156,6 +156,7 @@ body { display: inline-block; width: 40px; height: 24px; + input { display: none; }