1import Maybe from 'folktale/maybe';
2import React from 'react';
3import { Button, H1, P } from '../components/old/Base';
4import { InnerLabelDropdown } from '../components/old/Base';
5import { Row, Col } from '../components/old/Base';
7import { ROUTE_NAMES } from '../lib/routeNames';
8import { withHistory } from '../store/history';
9import { WALLET_TYPES, renderWalletType } from '../lib/wallet';
10import { compose } from '../lib/lib';
11import { withWallet } from '../store/wallet';
13class Wallet extends React.Component {
15 const { setWallet } = this.props;
16 setWallet(Maybe.Nothing());
22 title: 'Urbit Master Ticket',
23 value: WALLET_TYPES.TICKET,
26 title: 'Urbit Master Ticket (Shards)',
27 value: WALLET_TYPES.SHARDS,
34 value: WALLET_TYPES.LEDGER,
38 value: WALLET_TYPES.TREZOR,
44 title: 'BIP39 Mnemonic',
45 value: WALLET_TYPES.MNEMONIC,
48 title: 'Ethereum Private Key',
49 value: WALLET_TYPES.PRIVATE_KEY,
52 title: 'Ethereum Keystore File',
53 value: WALLET_TYPES.KEYSTORE,
59 const { props } = this;
60 const walletOptions = this.getWalletOptions();
65 <H1>{'Unlock a Wallet'}</H1>
68 {`To manage your assets, you need to unlock a wallet.
69 Please select how you would like to access your wallet.`}
73 className={'mb-10 mt-6'}
74 title={'Wallet Type:'}
75 options={walletOptions}
76 handleUpdate={props.setWalletType}
77 currentSelectionTitle={renderWalletType(props.walletType)}
84 props.walletType === WALLET_TYPES.MNEMONIC
85 ? ROUTE_NAMES.MNEMONIC
86 : props.walletType === WALLET_TYPES.TICKET
88 : props.walletType === WALLET_TYPES.SHARDS
90 : props.walletType === WALLET_TYPES.LEDGER
92 : props.walletType === WALLET_TYPES.TREZOR
94 : props.walletType === WALLET_TYPES.PRIVATE_KEY
95 ? ROUTE_NAMES.PRIVATE_KEY
96 : props.walletType === WALLET_TYPES.KEYSTORE
97 ? ROUTE_NAMES.KEYSTORE
109export default compose(
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