Browse Source

add coin default to spv

v0.25
pbca26 7 years ago
parent
commit
487d546538
  1. 13
      react/src/components/addcoin/addcoinOptionsCrypto.js
  2. 2
      react/src/components/addcoin/coin-selectors.render.js

13
react/src/components/addcoin/addcoinOptionsCrypto.js

@ -6,27 +6,16 @@ class AddCoinOptionsCrypto extends React.Component {
constructor() {
super();
this.state = {
isExperimentalOn: false,
};
}
componentWillMount() {
const appConfig = mainWindow.appConfig;
this.setState({
isExperimentalOn: appConfig.experimentalFeatures,
});
}
render() {
let availableKMDModes = mainWindow.arch === 'x64' ? 'spv|native' : 'spv';
return (
<optgroup label={ translate('ADD_COIN.CRYPTO_CURRENCIES') }>
<option value={ `KMD|${availableKMDModes}` }>Komodo (KMD)</option>
<option
value="CHIPS|spv"
className={ this.state.isExperimentalOn ? '' : 'hide' }>Chips (CHIPS)</option>
<option value="CHIPS|spv">Chips (CHIPS)</option>
</optgroup>
);
}

2
react/src/components/addcoin/coin-selectors.render.js

@ -55,7 +55,7 @@ const CoinSelectorsRender = function(item, coin, i) {
</button>
</div>
<div className="col-sm-11 text-center add-coin-modes">
<div className={ this.state.isExperimentalOn ? 'form-group col-lg-4 col-md-4 col-sm-6 col-xs-6 style-addcoin-lbl-mdl-login' : 'hide' }>
<div className="form-group col-lg-4 col-md-4 col-sm-6 col-xs-6 style-addcoin-lbl-mdl-login">
<input
type="radio"
className="to-labelauty labelauty"

Loading…
Cancel
Save