import { GenerateNewWalletAction } from 'actions/generateWallet'; import React, { Component } from 'react'; import { Link } from 'react-router'; import { Field, reduxForm } from 'redux-form'; import translate from 'translations'; import './EnterPassword.scss'; import PasswordInput from './PasswordInput'; import Template from './Template'; // VALIDATORS const minLength = min => value => { return value && value.length < min ? `Must be ${min} characters or more` : undefined; }; const minLength9 = minLength(9); const required = value => (value ? undefined : 'Required'); interface Props { walletPasswordForm: any; generateNewWallet(pw: string): GenerateNewWalletAction; } interface State { fileName: null | string; blobURI: null | string; isPasswordVisible: boolean; } class EnterPassword extends Component { public state = { fileName: null, blobURI: null, isPasswordVisible: false }; public render() { const { walletPasswordForm } = this.props; const { isPasswordVisible } = this.state; const AnyField = Field as new () => Field; const content = (

{translate('NAV_GenerateWallet')}

{translate('x_PasswordDesc')}

); const help = (

Ledger / TREZOR:

  • {translate('GEN_Help_1')} {' '} Ledger or TREZOR or Digital Bitbox {translate('GEN_Help_2')} {translate('GEN_Help_3')}

Jaxx / Metamask:

  • {translate('GEN_Help_1')} {translate('x_Mnemonic')} {translate('GEN_Help_2')}

Mist / Geth / Parity:

  • {translate('GEN_Help_1')} {translate('x_Keystore2')} {translate('GEN_Help_2')}

Guides & FAQ

); return