1import React from 'react';
2import { Button } from 'indigo-react';
4import { InnerLabelDropdown } from '../components/old/Base';
5import { H1, P } from '../components/old/Base';
6import { NETWORK_TYPES, renderNetworkType } from '../lib/network';
7import { ROUTE_NAMES } from '../lib/routeNames';
8import { useHistory } from '../store/history';
9import { useNetwork } from '../store/network';
10import View from 'components/View';
12const kNetworkOptions = [
14 title: 'Main Network (default)',
15 value: NETWORK_TYPES.MAINNET,
19 value: NETWORK_TYPES.ROPSTEN,
23 value: NETWORK_TYPES.LOCAL,
30 value: NETWORK_TYPES.OFFLINE,
35 const { networkType, setNetworkType } = useNetwork();
36 const history = useHistory();
40 <H1>{'Select Network'}</H1>
43 {"Please select the Ethereum node you'd like to send " +
44 'transactions to. For highly valuable keys, please select ' +
50 handleUpdate={setNetworkType}
51 options={kNetworkOptions}
52 currentSelectionTitle={renderNetworkType(networkType)}
55 <Button icon="→" onClick={() => history.push(ROUTE_NAMES.WALLET)}>
62export default Network;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list