This commit is contained in:
Daniel Ternyak 2017-04-24 19:00:58 -05:00
parent 270c4911c8
commit 30c51b9f72
1 changed files with 10 additions and 16 deletions

View File

@ -1,13 +1,15 @@
import React, {Component} from "react"; import React, {Component} from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import {Field, reduxForm} from "redux-form"; // ES6 import {Field, reduxForm} from "redux-form";
import GenerateWalletPasswordInputComponent from "./GenerateWalletPasswordInputComponent"; 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 minLength9 = minLength(9)
const required = value => value ? undefined : 'Required' const required = value => value ? undefined : 'Required'
@ -28,14 +30,6 @@ class GenerateWalletPasswordComponent extends Component {
generateWalletFile: PropTypes.bool generateWalletFile: PropTypes.bool
}; };
generateWallet() {
console.log("got here")
}
showPassword() {
}
render() { render() {
const { const {
// handleSubmit, // handleSubmit,
@ -71,15 +65,15 @@ class GenerateWalletPasswordComponent extends Component {
className="btn btn-primary btn-block"> className="btn btn-primary btn-block">
Generate Wallet Generate Wallet
</button> </button>
{ {
generateWalletFile && ( generateWalletFile && (
<div> <div>
<br/> <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>) </div>)
} }
</div> </div>
</section> </section>
</main> </main>