Newer
Older
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
// SPDX-License-Identifier: MIT
import { inject, observer } from 'mobx-react';
import { Link } from 'react-router-dom';
import CreateAccountHeader from '../CreateAccountHeader';
class CreateAccountStep3 extends Component {
state = {
value: ''
};
handleChange = ({ target: { value } }) => this.setState({ value });
const { createAccountStore: { phrase } } = this.props;
const { value } = this.state;
return (
<div className='window_content'>
<div className='box -padded'>
<div className='box -card'>
<div className='box -card-drawer'>
<div className='text'>
<p>Please write your recovery phrase here:</p>
</div>
<div className='form_field'>
<label>Recovery phrase</label>
<input onChange={this.handleChange} required value={value} />
</div>
<nav className='form-nav'>
{value === phrase
: <button className='button' disabled>
Next
</button>}
</div>
</div>
);
}
}
export default CreateAccountStep3;