// 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 AccountPlaceholder from '../AccountPlaceholder'; import CreateAccountHeader from '../CreateAccountHeader'; @inject('createAccountStore') @observer class AccountWritePhrase extends Component { state = { value: '' }; handleChange = ({ target: { value } }) => this.setState({ value }); handleNextStep = () => { const { history, location: { pathname } } = this.props; const currentStep = pathname.slice(-1); history.push(`/accounts/new/${+currentStep + 1}`); }; handleSavePhrase = () => { const { createAccountStore: { setPhrase } } = this.props; const { value } = this.state; setPhrase(value).then(this.handleNextStep); }; render () { const { createAccountStore: { isImport } } = this.props; const { value } = this.state; return (
{isImport ? : }

Please write your recovery phrase here: