From 0dde1a65a97bb4f628f687cbf1a19c5a86a60371 Mon Sep 17 00:00:00 2001 From: James Gray <101061708+randombeeper@users.noreply.github.com> Date: Thu, 4 Jul 2024 00:24:23 +0200 Subject: [PATCH 1/2] 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. --- packages/website/src/components/ApplyForm.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/website/src/components/ApplyForm.js b/packages/website/src/components/ApplyForm.js index 6e0bcd095..97b3f0620 100644 --- a/packages/website/src/components/ApplyForm.js +++ b/packages/website/src/components/ApplyForm.js @@ -75,10 +75,9 @@ function ApplyForm() { if (state.status === 'succeed' && state.message) { return ( - Thank you! -
- {state.message.startsWith('Your DocSearch') ? ( + URL Already Submitted! +
) : ( <> + Thank You! +
Date: Thu, 4 Jul 2024 00:45:41 +0200 Subject: [PATCH 2/2] react noob --- packages/website/src/components/ApplyForm.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/website/src/components/ApplyForm.js b/packages/website/src/components/ApplyForm.js index 97b3f0620..b61f5ba10 100644 --- a/packages/website/src/components/ApplyForm.js +++ b/packages/website/src/components/ApplyForm.js @@ -76,6 +76,7 @@ function ApplyForm() { return ( {state.message.startsWith('Your DocSearch') ? ( + <> URL Already Submitted!
{state.message} + ) : ( <> Thank You!