Add warning message about new portal sign up

This commit is contained in:
Tanner Collin 2020-02-14 22:35:51 +00:00
parent 4145ed3cc8
commit a68008a942

View File

@ -30,8 +30,17 @@ export function LoginForm(props) {
};
return (
<Form onSubmit={handleSubmit}>
<Form
onSubmit={handleSubmit}
warning={error.non_field_errors && error.non_field_errors[0] === 'Unable to log in with provided credentials.'}
>
<Header size='medium'>Log In to Spaceport</Header>
<Message warning>
<Message.Header>First time at the new portal?</Message.Header>
<p>Sign up below from Protospace Wi-Fi / computers.</p>
</Message>
<Form.Input
label='Username'
name='username'