diff options
author | Fabio Berger <me@fabioberger.com> | 2018-01-30 22:05:55 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-01-30 22:05:55 +0800 |
commit | 89e98240b485bfdfc62d27dc2982dcfab9169ea9 (patch) | |
tree | 59f841e00f54163323ba0a4a88cb6c09d222c132 | |
parent | 8d30058a6dade197efbfa24380a479d7b72a882a (diff) | |
download | dexon-0x-contracts-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar dexon-0x-contracts-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar.gz dexon-0x-contracts-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar.bz2 dexon-0x-contracts-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar.lz dexon-0x-contracts-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar.xz dexon-0x-contracts-89e98240b485bfdfc62d27dc2982dcfab9169ea9.tar.zst dexon-0x-contracts-89e98240b485bfdfc62d27dc2982dcfab9169ea9.zip |
Add Rinkeby support
-rw-r--r-- | packages/website/public/images/network_icons/rinkeby.png (renamed from packages/website/public/images/network_icons/rinkby.png) | bin | 126 -> 126 bytes | |||
-rw-r--r-- | packages/website/ts/components/dialogs/ledger_config_dialog.tsx | 9 |
2 files changed, 3 insertions, 6 deletions
diff --git a/packages/website/public/images/network_icons/rinkby.png b/packages/website/public/images/network_icons/rinkeby.png Binary files differindex f9ba18778..f9ba18778 100644 --- a/packages/website/public/images/network_icons/rinkby.png +++ b/packages/website/public/images/network_icons/rinkeby.png 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"> |