// Copyright 2015-2018 Parity Technologies (UK) Ltd. // This file is part of Parity. // // SPDX-License-Identifier: MIT import React, { Component } from 'react'; import Blockie from 'react-blockies'; import { inject, observer } from 'mobx-react'; @inject('createAccountStore') @observer class CreateAccountStep4 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 } = this.props; const { hint, password } = this.state; createAccountStore.setPassword(password); createAccountStore.setHint(hint); history.push('/accounts/new/step5'); }; render () { const { createAccountStore: { address, name } } = this.props; const { confirm, hint, password } = this.state; return (
{name || Account}
{address}

Secure your account with a password:

); } } export default CreateAccountStep4;