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

Secure your account with a password:

); } } export default AccountPassword;