Skip to content

Commit

Permalink
bring back recaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
renemennab committed Jun 18, 2024
1 parent 424e426 commit 3782c2f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/NewsletterSignupForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
usePrevious,
} from '@pluralsh/design-system'

import ReCAPTCHA from 'react-google-recaptcha'

import { isValidEmail } from '@src/utils/text'

import { FooterHeading, FooterNavLink } from './FooterNav'
Expand Down Expand Up @@ -181,6 +183,15 @@ export function NewsletterSignupForm() {
{response.message}
</ResponsiveText>
)}
<div className="mt-small">
<ReCAPTCHA
ref={recaptchaRef}
sitekey={process.env.NEXT_PUBLIC_SITE_RECAPTCHA_KEY}
onChange={(val) => {
setRecaptchaVal(val)
}}
/>
</div>
</form>
)
}

0 comments on commit 3782c2f

Please sign in to comment.