aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-01-30 22:05:55 +0800
committerFabio Berger <me@fabioberger.com>2018-01-30 22:05:55 +0800
commit89e98240b485bfdfc62d27dc2982dcfab9169ea9 (patch)
tree59f841e00f54163323ba0a4a88cb6c09d222c132 /packages/website/ts
parent8d30058a6dade197efbfa24380a479d7b72a882a (diff)
downloaddexon-sol-tools-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar
dexon-sol-tools-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar.gz
dexon-sol-tools-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar.bz2
dexon-sol-tools-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar.lz
dexon-sol-tools-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar.xz
dexon-sol-tools-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar.zst
dexon-sol-tools-89e98240b485bfdfc62d27dc2982dcfab9169ea9.zip
Add Rinkeby support
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/components/dialogs/ledger_config_dialog.tsx9
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/website/ts/components/dialogs/ledger_config_dialog.tsx b/packages/website/ts/components/dialogs/ledger_config_dialog.tsx
index 510025774..d5510606b 100644
--- a/packages/website/ts/components/dialogs/ledger_config_dialog.tsx
+++ b/packages/website/ts/components/dialogs/ledger_config_dialog.tsx
@@ -10,7 +10,7 @@ import { Blockchain } from 'ts/blockchain';
import { NetworkDropDown } from 'ts/components/dropdowns/network_drop_down';
import { LifeCycleRaisedButton } from 'ts/components/ui/lifecycle_raised_button';
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 { configs } from 'ts/utils/configs';
import { constants } from 'ts/utils/constants';
@@ -79,6 +79,7 @@ export class LedgerConfigDialog extends React.Component<LedgerConfigDialogProps,
);
}
private _renderConnectStep() {
+ const networkIds = _.values(constants.NETWORK_ID_BY_NAME);
return (
<div>
<div className="h4 pt3">Follow these instructions before proceeding:</div>
@@ -97,11 +98,7 @@ export class LedgerConfigDialog extends React.Component<LedgerConfigDialogProps,
<NetworkDropDown
updateSelectedNetwork={this._onSelectedNetworkUpdated.bind(this)}
selectedNetworkId={this.state.preferredNetworkId}
- avialableNetworkIds={[
- constants.NETWORK_ID_BY_NAME[Networks.mainnet],
- constants.NETWORK_ID_BY_NAME[Networks.kovan],
- constants.NETWORK_ID_BY_NAME[Networks.ropsten],
- ]}
+ avialableNetworkIds={networkIds}
/>
</div>
<div className="center pb3">