Skip to content

Commit

Permalink
Merge pull request #140 from grundeinkommensbuero/next-typeform-integ…
Browse files Browse the repository at this point in the history
…ration

Update [id].tsx
  • Loading branch information
joyponader authored Jul 12, 2024
2 parents d1e39fc + a58ad0f commit d597651
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const Hero = ({
dangerouslySetInnerHTML={{ __html: heroHTML }}
/>
)}

</section>
);
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@svgr/webpack": "^6.2.1",
"@tiptap/react": "^2.0.0-beta.108",
"@tiptap/starter-kit": "^2.0.0-beta.183",
"@typeform/embed-react": "^3.19.0",
"axios": "^0.27.2",
"canvas-confetti": "^1.5.1",
"classnames": "^2.3.1",
Expand Down
8 changes: 8 additions & 0 deletions pages/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { getPageProps, Page } from '../utils/getPageProps';
import { Section } from '../components/Section';
import { Hero } from '../components/Hero';
import { Directus } from '@directus/sdk';
import { Widget } from '@typeform/embed-react';
import PageNotFound from './404';

const IS_BERLIN_PROJECT = process.env.NEXT_PUBLIC_PROJECT === 'Berlin';
Expand All @@ -27,6 +28,13 @@ const PageWithSections = ({ page }: PageProps): ReactElement => {
}
return (
<section>
{page.slug === 'sammeln' && (
<Widget
id="01J2ECV3JHPMCP07N5RHFTSGBP"
style={{ width: '50%' }}
className="my-form"
/>
)}
{page.hasHero && (page.heroImage || page.heroHTML) && (
<Hero
heroHTML={page.heroHTML ?? null}
Expand Down

0 comments on commit d597651

Please sign in to comment.