diff --git a/components/blocks/CallToAction.tsx b/components/blocks/CallToAction.tsx index c50d9010a..1fe5520b0 100644 --- a/components/blocks/CallToAction.tsx +++ b/components/blocks/CallToAction.tsx @@ -8,8 +8,11 @@ import { useTranslations } from 'next-intl'; export interface CallToActionProps { title?: string; description?: string; + text?: string; // Alias for description ctaLabel?: string; + buttonText?: string; // Alias for ctaLabel ctaHref?: string; + buttonLink?: string; // Alias for ctaHref theme?: 'light' | 'dark'; } @@ -39,9 +42,9 @@ export const CallToAction: React.FC = (props) => { const t = useTranslations('CallToAction'); const title = props.title || t('title'); - const description = props.description || t('description'); - const ctaLabel = props.ctaLabel || t('ctaLabel'); - const ctaHref = props.ctaHref || t('ctaHref'); + const description = props.description || props.text || t('description'); + const ctaLabel = props.ctaLabel || props.buttonText || t('ctaLabel'); + const ctaHref = props.ctaHref || props.buttonLink || t('ctaHref'); return (