1import React from 'react';
3import { Button } from '../components/old/Base';
4import { InnerLabelDropdown } from '../components/old/Base';
5import { Row, Col, 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';
11const kNetworkOptions = [
13 title: 'Main Network (default)',
14 value: NETWORK_TYPES.MAINNET,
18 value: NETWORK_TYPES.ROPSTEN,
22 value: NETWORK_TYPES.LOCAL,
29 value: NETWORK_TYPES.OFFLINE,
34 const { networkType, setNetworkType } = useNetwork();
35 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 ' +
51 handleUpdate={setNetworkType}
52 options={kNetworkOptions}
53 currentSelectionTitle={renderNetworkType(networkType)}
58 onClick={() => history.push(ROUTE_NAMES.WALLET)}>
66export 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