// Copyright 2015-2018 Parity Technologies (UK) Ltd. // This file is part of Parity. // // SPDX-License-Identifier: MIT import React, { Component } from 'react'; import { inject, observer } from 'mobx-react'; import CreateAccountHeader from '../CreateAccountHeader'; @inject('createAccountStore') @observer class AccountPassword extends Component { state = { confirm: '', hint: '', password: '' }; handleConfirmChange = ({ target: { value } }) => { this.setState({ confirm: value }); }; handleHintChange = ({ target: { value } }) => { this.setState({ hint: value }); }; handlePasswordChange = ({ target: { value } }) => { this.setState({ password: value }); }; handleSubmit = () => { const { createAccountStore, history, location: { pathname } } = this.props; const { hint, password } = this.state; createAccountStore.setPassword(password); createAccountStore.setHint(hint); const currentStep = pathname.slice(-1); history.push(`/accounts/new/${+currentStep + 1}`); }; render () { const { confirm, hint, password } = this.state; return (

Secure your account with a password:

); } } export default AccountPassword;