fixed some bugs

This commit is contained in:
oriofir
2022-08-29 20:39:58 -07:00
parent 4ab3eb60fa
commit fcdf321879
2 changed files with 17 additions and 19 deletions
@@ -1,5 +1,6 @@
import { useState } from 'react' //add useRef
// import { ReCAPTCHA } from 'react-google-recaptcha'
// eslint-disable-next-line import/no-named-as-default
import ReCAPTCHA from 'react-google-recaptcha'
import Select from 'react-select'
import { Container } from '~/components/layout/container'
@@ -127,11 +128,7 @@ const CustomForm = ({ data }: FormProps) => {
onChange={(e) => setText(e.target.value)}
></textarea>
</label>
{/* <ReCAPTCHA
// siteKey={process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY}
size="invisible"
ref={reRef}
/> */}
<Button size="medium" variant="primary">
{data?.formLabelButton}
</Button>
@@ -151,6 +148,7 @@ const Form = ({ data }: DataProps) => {
<span>{data?.formWarning}</span>
</div>
<CustomForm data={data} />
<ReCAPTCHA sitekey={process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY} />
<div className={s['gradient']} />
</Container>
</Section>