Autofocus login username field

This commit is contained in:
Tanner Collin 2020-07-16 23:05:59 +00:00
parent d5be3b65de
commit 6be0778b39

View File

@ -51,6 +51,7 @@ export function LoginForm(props) {
placeholder='first.last' placeholder='first.last'
onChange={handleChange} onChange={handleChange}
error={error.username} error={error.username}
autoFocus
/> />
<Form.Input <Form.Input
label='Password' label='Password'
@ -63,7 +64,7 @@ export function LoginForm(props) {
Log In Log In
</Form.Button> </Form.Button>
<Message basic warning> <Message warning>
<Message.Header>Forgot your password?</Message.Header> <Message.Header>Forgot your password?</Message.Header>
<p><Link to='/password/reset/'>Click here</Link> to reset it.</p> <p><Link to='/password/reset/'>Click here</Link> to reset it.</p>
</Message> </Message>