refactor
This commit is contained in:
parent
270c4911c8
commit
30c51b9f72
|
@ -1,13 +1,15 @@
|
|||
import React, {Component} from "react";
|
||||
import PropTypes from "prop-types";
|
||||
|
||||
import {Field, reduxForm} from "redux-form"; // ES6
|
||||
import {Field, reduxForm} from "redux-form";
|
||||
import GenerateWalletPasswordInputComponent from "./GenerateWalletPasswordInputComponent";
|
||||
const minLength = min => value =>
|
||||
value && value.length < min ? `Must be ${min} characters or more` : undefined
|
||||
|
||||
|
||||
// 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'
|
||||
|
||||
|
||||
|
@ -28,14 +30,6 @@ class GenerateWalletPasswordComponent extends Component {
|
|||
generateWalletFile: PropTypes.bool
|
||||
};
|
||||
|
||||
generateWallet() {
|
||||
console.log("got here")
|
||||
}
|
||||
|
||||
showPassword() {
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
const {
|
||||
// handleSubmit,
|
||||
|
@ -71,12 +65,12 @@ class GenerateWalletPasswordComponent extends Component {
|
|||
className="btn btn-primary btn-block">
|
||||
Generate Wallet
|
||||
</button>
|
||||
|
||||
{
|
||||
generateWalletFile && (
|
||||
<div>
|
||||
<br/>
|
||||
<p style={{color: 'red'}}> Now you need to confirm that you copied your seed!</p>
|
||||
<p style={{color: 'red'}}> Now you need to confirm that you copied your
|
||||
seed!</p>
|
||||
</div>)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue