We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6582ff5 commit 8093b79Copy full SHA for 8093b79
app/[locale]/enterprise/_components/ContactForm/index.tsx
@@ -37,7 +37,7 @@ type FormState = {
37
}
38
39
type FormErrors = {
40
- email?: string
+ email?: React.ReactNode
41
message?: React.ReactNode
42
general?: string
43
@@ -121,7 +121,7 @@ const EnterpriseContactForm = ({ strings }: EnterpriseContactFormProps) => {
121
122
123
124
- const validateEmail = (email: string): string | undefined => {
+ const validateEmail = (email: string): React.ReactNode | undefined => {
125
const sanitized = sanitizeInput(email)
126
127
if (!sanitized) return strings.error.required
0 commit comments