diff --git a/src/app/(thank-you-pages)/app-purchase-thank-you/page.tsx b/src/app/(thank-you-pages)/app-purchase-thank-you/page.tsx index bb3c4cd1..f378adba 100644 --- a/src/app/(thank-you-pages)/app-purchase-thank-you/page.tsx +++ b/src/app/(thank-you-pages)/app-purchase-thank-you/page.tsx @@ -59,8 +59,7 @@ export default function AppPurchaseThankYouPage() { diff --git a/src/app/(thank-you-pages)/web-purchase-thank-you/page.tsx b/src/app/(thank-you-pages)/web-purchase-thank-you/page.tsx index 910742ef..7b3c399a 100644 --- a/src/app/(thank-you-pages)/web-purchase-thank-you/page.tsx +++ b/src/app/(thank-you-pages)/web-purchase-thank-you/page.tsx @@ -67,8 +67,7 @@ export default function WebPurchaseThankYouPage() { diff --git a/src/app/download/[slug]/page.tsx b/src/app/download/[slug]/page.tsx index 6452cf01..e6e9a78d 100644 --- a/src/app/download/[slug]/page.tsx +++ b/src/app/download/[slug]/page.tsx @@ -104,8 +104,7 @@ export default async function DownloadPage({ params }: DownloadPageProps) { diff --git a/src/components/modules/content-card/content-card.types.ts b/src/components/modules/content-card/content-card.types.ts index 6a504ea0..eaef9b15 100644 --- a/src/components/modules/content-card/content-card.types.ts +++ b/src/components/modules/content-card/content-card.types.ts @@ -8,5 +8,8 @@ export interface ContentCardProps extends StyledContentCardProps { title: string; text?: string; button?: ButtonProps; - action?: string; + newsletter?: { + action: string; + source: string; + } } diff --git a/src/components/modules/content-card/form/index.tsx b/src/components/modules/content-card/form/index.tsx index ab870755..5101ea28 100644 --- a/src/components/modules/content-card/form/index.tsx +++ b/src/components/modules/content-card/form/index.tsx @@ -3,13 +3,12 @@ import { Input } from '../../input'; import { StyledNewsletterSuccess } from '../../newsletter/newsletter.styles'; import { StyledContentCardForm } from '../content-card.styles'; -import type { ContentCardProps } from '../content-card.types'; import { Button } from '@/components/elements/button'; import { Text } from '@/components/elements/text'; import { useNewsletterSubmit } from '@/lib/hooks/use-newsletter-submit'; -export const ContentCardForm = ({ action }: Pick) => { +export const NewsletterForm = ({ action, source }: { action: string, source: string }) => { const [isSuccess, handleSubmit] = useNewsletterSubmit(); return ( <> @@ -24,6 +23,10 @@ export const ContentCardForm = ({ action }: Pick) =>
+ + { source && + + }