mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 19:44:21 +00:00
reformat
This commit is contained in:
parent
3644cb5515
commit
ff81133b5e
@ -1,40 +1,44 @@
|
|||||||
import React, {Component} from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
|
|
||||||
export default class GenerateWalletPasswordInputComponent extends Component {
|
export default class GenerateWalletPasswordInputComponent extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props)
|
super(props);
|
||||||
}
|
}
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
generateWalletShowPassword: PropTypes.func,
|
generateWalletShowPassword: PropTypes.func,
|
||||||
showPassword: PropTypes.bool,
|
showPassword: PropTypes.bool,
|
||||||
input: PropTypes.object,
|
input: PropTypes.object,
|
||||||
meta: PropTypes.object
|
meta: PropTypes.object
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
render() {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<div>
|
|
||||||
<div className="input-group" style={{width: '100%'}}>
|
|
||||||
<input {...this.props.input}
|
|
||||||
name="password"
|
|
||||||
className={this.props.meta.error ? 'form-control is-invalid' : 'form-control'}
|
|
||||||
type={this.props.showPassword ? 'text' : 'password'}
|
|
||||||
placeholder="Do NOT forget to save this!"
|
|
||||||
aria-label="Enter a strong password (at least 9 characters)"/>
|
|
||||||
<span
|
|
||||||
onClick={() => this.props.generateWalletShowPassword()}
|
|
||||||
aria-label="make password visible"
|
|
||||||
role="button"
|
|
||||||
className="input-group-addon eye"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
<div className="input-group" style={{ width: '100%' }}>
|
||||||
|
<input
|
||||||
|
{...this.props.input}
|
||||||
|
name="password"
|
||||||
|
className={
|
||||||
|
this.props.meta.error
|
||||||
|
? 'form-control is-invalid'
|
||||||
|
: 'form-control'
|
||||||
|
}
|
||||||
|
type={this.props.showPassword ? 'text' : 'password'}
|
||||||
|
placeholder="Do NOT forget to save this!"
|
||||||
|
aria-label="Enter a strong password (at least 9 characters)"
|
||||||
|
/>
|
||||||
|
<span
|
||||||
|
onClick={() => this.props.generateWalletShowPassword()}
|
||||||
|
aria-label="make password visible"
|
||||||
|
role="button"
|
||||||
|
className="input-group-addon eye"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user