diff --git a/react/src/components/dashboard/settings/settings.addNodePanel.js b/react/src/components/dashboard/settings/settings.addNodePanel.js deleted file mode 100644 index 5c0c1a4..0000000 --- a/react/src/components/dashboard/settings/settings.addNodePanel.js +++ /dev/null @@ -1,179 +0,0 @@ -import React from 'react'; -import { translate } from '../../../translate/translate'; -import { connect } from 'react-redux'; - -import { - addPeerNode, - getPeersList, - getPeersListState, -} from '../../../actions/actionCreators'; -import Store from '../../../store'; - -import AddCoinOptionsCrypto from '../../addcoin/addcoinOptionsCrypto'; -import AddCoinOptionsAC from '../../addcoin/addcoinOptionsAC'; -import AddCoinOptionsACFiat from '../../addcoin/addcoinOptionsACFiat'; - -class AddNodePanel extends React.Component { - constructor() { - super(); - this.state = { - addNodeCoin: null, - addPeerIP: null, - getPeersCoin: null, - trimPassphraseTimer: null, - wifkeysPassphrase:'', - }; - this.renderSNPeersList = this.renderSNPeersList.bind(this); - this.renderPeersList = this.renderPeersList.bind(this); - this.checkNodes = this.checkNodes.bind(this); - this.addNode = this.addNode.bind(this); - this.updateInput = this.updateInput.bind(this); - } - - renderSNPeersList() { - if (this.state.getPeersCoin) { - const _getPeersCoin = this.state.getPeersCoin; - const _supernetPeers = this.props.Settings.supernetPeers; - const coin = _getPeersCoin.split('|')[0]; - - if (_supernetPeers && - _getPeersCoin && - _supernetPeers[coin]) { - return _supernetPeers[coin].map((ip) => -
{ translate('INDEX.USE_THIS_SECTION') }
-{ translate('INDEX.USE_THIS_SECTION_PEER') }
-{ secondsToString(_appRuntimeLog[i].time, true) } - { JSON.stringify(_appRuntimeLog[i].msg, null, '') } + { _appRuntimeLog[i].msg.indexOf('{') === -1 ? _appRuntimeLog[i].msg : JSON.stringify(_appRuntimeLog[i].msg, null, '') }
); } diff --git a/react/src/components/dashboard/settings/settings.render.js b/react/src/components/dashboard/settings/settings.render.js index c9f8d4a..0dbe84d 100644 --- a/react/src/components/dashboard/settings/settings.render.js +++ b/react/src/components/dashboard/settings/settings.render.js @@ -5,7 +5,6 @@ import Panel from './settings.panel'; import AppUpdatePanel from './settings.appUpdatePanel'; import AppInfoPanel from './settings.appInfoPanel'; -// import AddNodePanel from './settings.addNodePanel'; import AppSettingsPanel from './settings.appSettingsPanel'; import CliPanel from './settings.cliPanel'; import DebugLogPanel from './settings.debugLogPanel';