File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,30 +82,21 @@ export default function DesktopVersion() {
8282 field = "message"
8383 errors = { state . errors }
8484 />
85- { /*//TODO: replace this button with the app button component */ }
8685
8786 < ReCAPTCHA
8887 sitekey = { process . env . NEXT_PUBLIC_RECAPTCHA_SITE_KEY ! }
8988 onChange = { handleRecaptchaResult }
90- />
89+ />
9190
92- { captchaComplete ? (
93- < button
94- type = "submit"
95- disabled = { state . submitting }
96- className = "block rounded-md p-2 my-2 w-[247px] h-14 mx-auto bg-[#EC0505] text-white font-bold font-montserrat"
97- >
98- Send Message
99- </ button >
100- ) : (
91+ { /* //TODO: replace this button with the app button component */ }
10192 < button
10293 type = "submit"
103- disabled
94+ disabled = { ! captchaComplete || state . submitting }
10495 className = "block rounded-md p-2 my-2 w-[247px] h-14 mx-auto bg-[#EC0505] text-white font-bold font-montserrat"
10596 >
10697 Send Message
10798 </ button >
108- ) }
99+
109100 < ValidationError errors = { state . errors } />
110101 </ form >
111102 </ div >
Original file line number Diff line number Diff line change @@ -91,30 +91,20 @@ export default function MobileVersion() {
9191 field = "message"
9292 errors = { state . errors }
9393 />
94- { /*//TODO: replace this button with the app button component */ }
9594
9695 < ReCAPTCHA
9796 sitekey = { process . env . NEXT_PUBLIC_RECAPTCHA_SITE_KEY ! }
9897 onChange = { handleRecaptchaResult }
9998 />
10099
101- { captchaComplete ? (
100+ { /* //TODO: replace this button with the app button component */ }
102101 < button
103102 type = "submit"
104- disabled = { state . submitting }
103+ disabled = { ! captchaComplete || state . submitting }
105104 className = "border-2 border-[#12A04E] w-full rounded-md p-2 my-2 font-montserrat font-bold text-[#12A04E]"
106105 >
107106 Send Message
108107 </ button >
109- ) : (
110- < button
111- type = "submit"
112- disabled
113- className = "border-2 border-[#12A04E] w-full rounded-md p-2 my-2 font-montserrat font-bold text-[#12A04E]"
114- >
115- Send Message
116- </ button >
117- ) }
118108 < ValidationError errors = { state . errors } />
119109 </ form >
120110 </ >
You can’t perform that action at this time.
0 commit comments