Explain when people need to sign up for Spaceport

This commit is contained in:
2021-11-11 06:05:24 +00:00
parent b8dc5467d8
commit 64e7f4d8f4
3 changed files with 51 additions and 15 deletions
+23 -6
View File
@@ -37,7 +37,7 @@ function ResetForm() {
});
return (
<Form onSubmit={handleSubmit} error={error.email == 'Not found.'}>
<Form onSubmit={handleSubmit} error={!!error.email}>
<Form.Input
label='Email'
name='email'
@@ -45,11 +45,28 @@ function ResetForm() {
error={error.email}
/>
<Message
error
header='Email not found in Spaceport'
content='Ask a director if you forgot which one you used.'
/>
{error.email == 'Not found.' &&
<Message
error
header='Email not found in Spaceport'
content='Ask a director if you forgot which one you used.'
/>
}
{error.email == 'Not on Spaceport.' &&
<Message
error
header={'You haven\'t registered to Spaceport yet'}
content={
<>
Please sign up to the new portal here:<br />
<Link to='/#outside-protospace-15c7b5'>
Spaceport Registration
</Link>
</>
}
/>
}
<Form.Button loading={loading} error={error.non_field_errors}>
Submit