Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// 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 { Link } from 'react-router-dom';
@inject('createAccountStore')
@observer
class CreateAccountStep3 extends Component {
state = {
value: ''
};
handleChange = ({ target: { value } }) => this.setState({ value });
render() {
const {
createAccountStore: { phrase }
} = this.props;
const { value } = this.state;
return (
<div>
<h3>Create account step 3</h3>
<div>
Please rewrite your whole phrase here<br />
<input onChange={this.handleChange} required value={value} />
</div>
<em style={{ fontSize: 12 }}>
@brian maybe tell the user to write the 3rd, 9th and 11th word only?
3,9,11 being random numbers
</em>
{value === phrase && (
<Link to="/accounts/new/step4">
<button>Done</button>
</Link>
)}
</div>
);
}
}
export default CreateAccountStep3;