File tree Expand file tree Collapse file tree
contact/components/contact-form Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 JobGroups ,
1010} from '@/app/(landing)/careers/components/job-board'
1111import { careersSearchParamsCache } from '@/app/(landing)/careers/search-params'
12- import { TrustedBy } from '@/app/(landing)/components/trusted-by'
1312
1413interface CareersProps {
1514 searchParams : Promise < SearchParams >
@@ -87,8 +86,6 @@ export default async function Careers({ searchParams }: CareersProps) {
8786 >
8887 < JobBoard postings = { postings } />
8988 </ Suspense >
90-
91- < TrustedBy className = 'pt-6' />
9289 </ section >
9390 </ main >
9491 )
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ function JobRow({ posting }: JobRowProps) {
8383 target = '_blank'
8484 rel = 'noopener noreferrer'
8585 className = { cn (
86- 'group flex items-center justify-between gap-6 border-[var(--border)] border-t py-5 ' ,
87- 'transition-colors hover:bg-[var(--surface-hover)]'
86+ '-mx-3 group flex items-center justify-between gap-6 rounded-lg border-[var(--border)]' ,
87+ 'border-t px-3 py-5 transition-colors hover:bg-[var(--surface-hover)]'
8888 ) }
8989 >
9090 < div className = 'flex min-w-0 flex-col gap-1.5' >
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212} from '@/lib/api/contracts/contact'
1313import { flattenFieldErrors } from '@/lib/api/contracts/primitives'
1414import { getEnv } from '@/lib/core/config/env'
15+ import { quickValidateEmail } from '@/lib/messaging/email/validation'
1516import { captureClientEvent } from '@/lib/posthog/client'
1617import { useSubmitContact } from '@/hooks/queries/contact'
1718
@@ -175,6 +176,13 @@ export function ContactForm() {
175176 )
176177 }
177178
179+ const canSubmit =
180+ quickValidateEmail ( form . email . trim ( ) ) . isValid &&
181+ form . name . trim ( ) . length > 0 &&
182+ form . topic . length > 0 &&
183+ form . subject . trim ( ) . length > 0 &&
184+ form . message . trim ( ) . length > 0
185+
178186 const isBusy = contactMutation . isPending || isSubmitting
179187
180188 const submitError = contactMutation . isError
@@ -336,7 +344,7 @@ export function ContactForm() {
336344 variant = 'primary'
337345 flush
338346 fullWidth
339- disabled = { isBusy }
347+ disabled = { isBusy || ! canSubmit }
340348 className = 'mt-1 justify-center [&>span]:flex-none'
341349 >
342350 { isBusy ? 'Sending…' : 'Send message' }
You can’t perform that action at this time.
0 commit comments