-
-
-
handleChange('first_name', e.target.value)}
- />
+ {rows.map((row, rowIndex) => (
+ 1 ? 'grid grid-cols-1 sm:grid-cols-2 gap-4' : undefined}
+ >
+ {row.map((field) => (
+
+
+ {renderField(field, values[field.name] ?? '', (v) => handleChange(field.name, v))}
+
+ ))}
-
-
- handleChange('last_name', e.target.value)}
- />
-
-
-
-
-
- handleChange('email_address', e.target.value)}
- />
-
-
-
-
- handleChange('company_name', e.target.value)}
- />
-
-
-
-
- handleChange('message', e.target.value)}
- />
-
+ ))}
{submitState === 'error' && errorMessages.length > 0 && (
@@ -157,7 +192,7 @@ export default function WebinarContactForm({
diff --git a/apps/www/pages/events/[slug].tsx b/apps/www/pages/events/[slug].tsx
index 353368de84e..3d3756d4b4c 100644
--- a/apps/www/pages/events/[slug].tsx
+++ b/apps/www/pages/events/[slug].tsx
@@ -25,7 +25,7 @@ import utc from 'dayjs/plugin/utc'
import { Button, Image } from 'ui'
import ShareArticleActions from '~/components/Blog/ShareArticleActions'
-import WebinarContactForm from '~/components/Events/WebinarContactForm'
+import HubSpotForm from '~/components/Events/HubSpotForm'
import DefaultLayout from '~/components/Layouts/Default'
import SectionContainer from '~/components/Layouts/SectionContainer'
@@ -390,7 +390,7 @@ const EventPage = ({ event }: InferGetStaticPropsType) =>
{...content}
components={{
...mdxComponents(),
- WebinarContactForm,
+ HubSpotForm,
}}
/>