Add Rinkeby support

This commit is contained in:
Fabio Berger 2018-01-30 15:05:55 +01:00
parent 8d30058a6d
commit 89e98240b4
2 changed files with 3 additions and 6 deletions

View File

Before

Width:  |  Height:  |  Size: 126 B

After

Width:  |  Height:  |  Size: 126 B

View File

@ -10,7 +10,7 @@ import { Blockchain } from 'ts/blockchain';
import { NetworkDropDown } from 'ts/components/dropdowns/network_drop_down'; import { NetworkDropDown } from 'ts/components/dropdowns/network_drop_down';
import { LifeCycleRaisedButton } from 'ts/components/ui/lifecycle_raised_button'; import { LifeCycleRaisedButton } from 'ts/components/ui/lifecycle_raised_button';
import { Dispatcher } from 'ts/redux/dispatcher'; import { Dispatcher } from 'ts/redux/dispatcher';
import { ProviderType, Networks } from 'ts/types'; import { Networks, ProviderType } from 'ts/types';
import { colors } from 'ts/utils/colors'; import { colors } from 'ts/utils/colors';
import { configs } from 'ts/utils/configs'; import { configs } from 'ts/utils/configs';
import { constants } from 'ts/utils/constants'; import { constants } from 'ts/utils/constants';
@ -79,6 +79,7 @@ export class LedgerConfigDialog extends React.Component<LedgerConfigDialogProps,
); );
} }
private _renderConnectStep() { private _renderConnectStep() {
const networkIds = _.values(constants.NETWORK_ID_BY_NAME);
return ( return (
<div> <div>
<div className="h4 pt3">Follow these instructions before proceeding:</div> <div className="h4 pt3">Follow these instructions before proceeding:</div>
@ -97,11 +98,7 @@ export class LedgerConfigDialog extends React.Component<LedgerConfigDialogProps,
<NetworkDropDown <NetworkDropDown
updateSelectedNetwork={this._onSelectedNetworkUpdated.bind(this)} updateSelectedNetwork={this._onSelectedNetworkUpdated.bind(this)}
selectedNetworkId={this.state.preferredNetworkId} selectedNetworkId={this.state.preferredNetworkId}
avialableNetworkIds={[ avialableNetworkIds={networkIds}
constants.NETWORK_ID_BY_NAME[Networks.mainnet],
constants.NETWORK_ID_BY_NAME[Networks.kovan],
constants.NETWORK_ID_BY_NAME[Networks.ropsten],
]}
/> />
</div> </div>
<div className="center pb3"> <div className="center pb3">