import React from 'react' import PropTypes from 'prop-types' import Isvg from 'react-inlinesvg' import eye from 'icons/eye.svg' import styles from './NewWalletPassword.scss' class NewWalletPassword extends React.Component { constructor(props) { super(props) this.state = { inputType: 'password', confirmPassword: '' } } render() { const { createWalletPassword, updateCreateWalletPassword } = this.props const { inputType, confirmPassword } = this.state const toggleInputType = () => { const newInputType = inputType === 'password' ? 'text' : 'password' this.setState({ inputType: newInputType }) } return (
updateCreateWalletPassword(event.target.value)} />
this.setState({ confirmPassword: event.target.value })} />
) } } NewWalletPassword.propTypes = { createWalletPassword: PropTypes.string.isRequired, updateCreateWalletPassword: PropTypes.func.isRequired } export default NewWalletPassword