-
Notifications
You must be signed in to change notification settings - Fork 417
Expand file tree
/
Copy pathConfirmSignUp.js
More file actions
executable file
·50 lines (47 loc) · 2 KB
/
ConfirmSignUp.js
File metadata and controls
executable file
·50 lines (47 loc) · 2 KB
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
47
48
49
50
import React from 'react'
class ConfirmSignUp extends React.Component {
state = {
username: '', authcode: ''
}
onChange = (e) => {
this.setState({ [e.target.name]: e.target.value})
}
render() {
return (
<div>
<h3 className="py-4">Sign Up</h3>
<div className="flex flex-1 justify-center">
<div className="w-full max-w-144">
<form className="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
<div className="mb-4">
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="username">
Username
</label>
<input
onChange={this.onChange} name="username"
className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="username" type="text" placeholder="Username" />
</div>
<div className="mb-6">
<label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="authcode">
Authentication Code
</label>
<input
onChange={this.onChange} name="authcode"
className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline" id="authcode" type="authcode" />
</div>
<div className="flex items-center justify-between">
<button onClick={() => this.props.confirmSignUp(this.state)} className="bg-primary hover:bg-primary text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" type="button">
Confirm Sign Up
</button>
<a className="inline-block align-baseline font-bold text-sm" href="#">
Forgot Password?
</a>
</div>
</form>
</div>
</div>
</div>
)
}
}
export default ConfirmSignUp