-
Notifications
You must be signed in to change notification settings - Fork 185
/
Copy pathstepThree.js
40 lines (37 loc) · 1.06 KB
/
stepThree.js
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
import React, { useState, useEffect } from 'react'
export const StepThree = (props) => {
const [password, setPassword] = useState('')
const [passwordConfirm, setPasswordConfirm] = useState('')
useEffect(() => {
props.signalParent({isValid: true, goto: 0})
}, [])
return (
<div className='container'>
<div className='row'>
<div className='six columns'>
<label>Password</label>
<input
className='u-full-width required'
placeholder='Password'
type='password'
onChange={e => setPassword(e.target.value)}
value={password}
autoFocus
/>
</div>
</div>
<div className='row'>
<div className='six columns'>
<label>Confirm password</label>
<input
className='u-full-width'
placeholder='Confirm Password'
type='password'
onChange={e => setPasswordConfirm(e.target.value)}
value={passwordConfirm}
/>
</div>
</div>
</div>
)
}