Skip to content

Commit

Permalink
adds airtable form
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-korolev committed Jun 24, 2024
1 parent e4d2a6a commit 486be67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/templates/cfp/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@ const CFP: FunctionComponent<
}>
> = ({ data, location }) => {
const config = transformConfig(data.allAirtableconfig.nodes)
const formType = config?.cfpform?.value || "airtable"

return (
<>
<SEO title={data.airtablepages.data.title} />
<Header location={location} />
<Container as="main">
{config.cfpform.value === "airtable" && <iframe
{formType === "airtable" && <iframe
src="https://airtable.com/embed/appV8iIxl39lc20bh/pag57KTKlKuiOgmvH/form"
style={{
width: "100%",
height: "533px",
border: "none",
}}
/>}
{config.cfpform.value === "typeform" && <iframe
{formType === "typeform" && <iframe
src="https://form.typeform.com/to/ogjLwQex?typeform-medium=embed-snippet"
style={{
width: "100%",
Expand Down

0 comments on commit 486be67

Please sign in to comment.