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 4d3af59 commit 024c76fCopy full SHA for 024c76f
src/components/widgets/Hero.tsx
@@ -1,5 +1,5 @@
1
import Image from 'next/image';
2
-import { CallToAction, HeroProps } from '~/shared/types';
+import { HeroProps } from '~/shared/types';
3
import CTA from '../common/CTA';
4
5
const Hero = (props: { data: HeroProps }) => {
@@ -18,8 +18,8 @@ const Hero = (props: { data: HeroProps }) => {
18
<div className="mx-auto max-w-3xl">
19
{subtitle && <p className="mb-6 text-xl font-normal text-gray-600 dark:text-slate-400">{subtitle}</p>}
20
<div className="flex max-w-none flex-col flex-nowrap gap-4 px-4 sm:flex-row sm:justify-center">
21
- <CTA data={callToAction as CallToAction} />
22
- <CTA data={callToAction2 as CallToAction} />
+ {callToAction && <CTA data={callToAction} />}
+ {callToAction2 && <CTA data={callToAction2} />}
23
</div>
24
25
0 commit comments