fix(apply form): Update ApplyForm.js (#2270)
* fix(apply form): Update ApplyForm.js The "Thank you!" is misleading in this case because people think they've submitted the form but haven't because it was a duplicate. Made a change to make the situation more clear. * react noob
This commit is contained in:
parent
8587f58b03
commit
069a3de0b5
1 changed files with 6 additions and 3 deletions
|
|
@ -75,18 +75,21 @@ function ApplyForm() {
|
|||
if (state.status === 'succeed' && state.message) {
|
||||
return (
|
||||
<Card className="uil-m-auto uil-ta-center apply-form">
|
||||
<Heading1 className="apply-text">Thank you!</Heading1>
|
||||
<br />
|
||||
|
||||
{state.message.startsWith('Your DocSearch') ? (
|
||||
<>
|
||||
<Heading1 className="apply-text">URL Already Submitted!</Heading1>
|
||||
<br />
|
||||
<Text
|
||||
className="uil-pv-8 uil-d-block apply-text"
|
||||
aria-label="Request has already been processed"
|
||||
>
|
||||
{state.message}
|
||||
</Text>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Heading1 className="apply-text">Thank You!</Heading1>
|
||||
<br />
|
||||
<Text
|
||||
className="uil-pv-8 uil-d-block apply-text"
|
||||
aria-label="Request will be processed"
|
||||
|
|
|
|||
Loading…
Reference in a new issue