Browse Source

WalletsBalance component - small code refactor

all-modes
petitPapillon 8 years ago
parent
commit
47eebb47a8
  1. 8
      react/src/components/dashboard/walletsBalance/walletsBalance.js
  2. 6
      react/src/components/dashboard/walletsBalance/walletsBalance.render.js

8
react/src/components/dashboard/walletsBalance/walletsBalance.js

@ -78,6 +78,10 @@ class WalletsBalance extends React.Component {
return this.isActiveCoinMode('basilisk'); return this.isActiveCoinMode('basilisk');
} }
isNativeMode() {
return this.isActiveCoinMode('native');
}
isFullMode() { isFullMode() {
return this.isActiveCoinMode('full'); return this.isActiveCoinMode('full');
} }
@ -93,10 +97,6 @@ class WalletsBalance extends React.Component {
); );
} }
isNativeMode() {
return this.isActiveCoinMode('native');
}
isNativeBalanceActive() { isNativeBalanceActive() {
return this.isNativeMode() && this.props.ActiveCoin.nativeActiveSection === 'default'; return this.isNativeMode() && this.props.ActiveCoin.nativeActiveSection === 'default';
} }

6
react/src/components/dashboard/walletsBalance/walletsBalance.render.js

@ -1,7 +1,7 @@
import React from "react"; import React from 'react';
import {translate} from "../../../translate/translate"; import { translate } from '../../../translate/translate';
const WalletsBalanceRender = function () { const WalletsBalanceRender = function() {
return ( return (
<div id="wallet-widgets"> <div id="wallet-widgets">
<div className="col-xs-12"> <div className="col-xs-12">

Loading…
Cancel
Save