import Maybe from 'folktale/maybe'; import React from 'react'; import { Button, H1, P } from '../components/old/Base'; import { InnerLabelDropdown } from '../components/old/Base'; import { Row, Col } from '../components/old/Base'; import { ROUTE_NAMES } from '../lib/routeNames'; import { withHistory } from '../store/history'; import { WALLET_TYPES, renderWalletType } from '../lib/wallet'; import { compose } from '../lib/lib'; import { withWallet } from '../store/wallet'; class Wallet extends React.Component { componentDidMount() { const { setWallet } = this.props; setWallet(Maybe.Nothing()); } getWalletOptions() { return [ { title: 'Urbit Master Ticket', value: WALLET_TYPES.TICKET, }, { title: 'Urbit Master Ticket (Shards)', value: WALLET_TYPES.SHARDS, }, { type: 'divider', }, { title: 'Ledger', value: WALLET_TYPES.LEDGER, }, { title: 'Trezor', value: WALLET_TYPES.TREZOR, }, { type: 'divider', }, { title: 'BIP39 Mnemonic', value: WALLET_TYPES.MNEMONIC, }, { title: 'Ethereum Private Key', value: WALLET_TYPES.PRIVATE_KEY, }, { title: 'Ethereum Keystore File', value: WALLET_TYPES.KEYSTORE, }, ]; } render() { const { props } = this; const walletOptions = this.getWalletOptions(); return (

{'Unlock a Wallet'}

{`To manage your assets, you need to unlock a wallet. Please select how you would like to access your wallet.`}

); } } export default compose( withHistory, withWallet )(Wallet);