whitespace reformatting
This commit is contained in:
parent
e23409cbac
commit
0c457c8e82
|
@ -1,8 +1,8 @@
|
||||||
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";
|
import {Field, reduxForm} from "redux-form";
|
||||||
import GenerateWalletPasswordInputComponent from"./GenerateWalletPasswordInputComponent";
|
import GenerateWalletPasswordInputComponent from "./GenerateWalletPasswordInputComponent";
|
||||||
|
|
||||||
|
|
||||||
// VALIDATORS
|
// VALIDATORS
|
||||||
|
@ -63,29 +63,28 @@ class GenerateWalletPasswordComponent extends Component {
|
||||||
<div className="tab-content">
|
<div className="tab-content">
|
||||||
<main className="tab-pane active text-center" role="main">
|
<main className="tab-pane active text-center" role="main">
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
{
|
{
|
||||||
!generateWalletFile && (<section className="row">
|
!generateWalletFile && (<section className="row">
|
||||||
<h1 aria-live="polite">Generate Wallet</h1>
|
<h1 aria-live="polite">Generate Wallet</h1>
|
||||||
<div className="col-sm-8 col-sm-offset-2">
|
<div className="col-sm-8 col-sm-offset-2">
|
||||||
<h4>Enter a strong password (at least 9 characters)</h4>
|
<h4>Enter a strong password (at least 9 characters)</h4>
|
||||||
<Field
|
<Field
|
||||||
validate={[required, minLength9]}
|
validate={[required, minLength9]}
|
||||||
component={GenerateWalletPasswordInputComponent}
|
component={GenerateWalletPasswordInputComponent}
|
||||||
showPassword={showPassword}
|
showPassword={showPassword}
|
||||||
showGenerateWalletPasswordAction={showGenerateWalletPasswordAction}
|
showGenerateWalletPasswordAction={showGenerateWalletPasswordAction}
|
||||||
name="password"
|
name="password"
|
||||||
type="text"/>
|
type="text"/>
|
||||||
<br/>
|
<br/>
|
||||||
<button onClick={() => generateWalletFileAction()}
|
<button onClick={() => generateWalletFileAction()}
|
||||||
disabled={generateWalletPassword ? generateWalletPassword.syncErrors : true}
|
disabled={generateWalletPassword ? generateWalletPassword.syncErrors : true}
|
||||||
className="btn btn-primary btn-block">
|
className="btn btn-primary btn-block">
|
||||||
Generate Wallet
|
Generate Wallet
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</section>)
|
</section>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
generateWalletFile && (
|
generateWalletFile && (
|
||||||
<section role="main" className="row">
|
<section role="main" className="row">
|
||||||
|
@ -116,7 +115,8 @@ class GenerateWalletPasswordComponent extends Component {
|
||||||
<strong>If you do not save your wallet file and password, we cannot recover them.</strong><br/>
|
<strong>If you do not save your wallet file and password, we cannot recover them.</strong><br/>
|
||||||
Save your wallet file now & back it up in a second location (not on your computer).
|
Save your wallet file now & back it up in a second location (not on your computer).
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<a role="button" className={`btn btn-info ${this.state.hasDownloaded ? '': 'disabled'}`}
|
<a role="button"
|
||||||
|
className={`btn btn-info ${this.state.hasDownloaded ? '' : 'disabled'}`}
|
||||||
onClick={() => this.continueToPaper()}> I understand. Continue. </a>
|
onClick={() => this.continueToPaper()}> I understand. Continue. </a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue