Skip to content

Commit

Permalink
Merge pull request #98 from As-Raparigas-do-Codigo/delete-captcha
Browse files Browse the repository at this point in the history
remove captcha
  • Loading branch information
toothlesspanda authored Aug 28, 2023
2 parents 53f84c5 + 5080e12 commit 1a3d0b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions src/components/Forms/CommunityForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,20 +348,14 @@ function CommunityForm({ translation }) {
</p>
}

{!showCaptcha && (
{
<button
className="button-primary"
type="submit"
disabled={!validForm}
onClick={handleFormWasSubmitted}>
{translation('CommunityPage-CommunityForm-SubmitButton')}
</button>
)}
{
/* this is a test recaptcha */
showCaptcha && (
<Reaptcha sitekey="***REMOVED***" onVerify={onVerify} />
)
}
</div>
</Form>
Expand Down
8 changes: 1 addition & 7 deletions src/components/Forms/ContactForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,20 +130,14 @@ function ContactForm({ translation }) {
{translation('ContactsPage-ContactFormSection-MandatoryLabel')}
</p>
}
{!showCaptcha && (
{
<button
className="button-primary"
type="submit"
disabled={!name || !email || !subject || !message || sending}
onClick={handleFormWasSubmitted}>
{translation('ContactsPage-ContactFormSection-SendMessageButton')}
</button>
)}
{
/* this is a test recaptcha */
showCaptcha && (
<Reaptcha sitekey="***REMOVED***" onVerify={onVerify} />
)
}
</div>
</Form>
Expand Down

0 comments on commit 1a3d0b3

Please sign in to comment.