diff --git a/src/components/ReferralBlock/ReferralBlock.svelte b/src/components/ReferralBlock/ReferralBlock.svelte index f1e49c90..bdf825c7 100644 --- a/src/components/ReferralBlock/ReferralBlock.svelte +++ b/src/components/ReferralBlock/ReferralBlock.svelte @@ -31,11 +31,11 @@ /** * Link [target](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target), e.g., `_blank` or `_parent`. */ - linkTarget: string; + linkTarget?: string; /** * Add a heading to the referral block. */ - heading: string; + heading?: string; /** * Width of the component within the text well: 'normal' | 'wide' | 'wider' | 'widest' | 'fluid' */ diff --git a/src/components/SiteFooter/CompanyLinks.svelte b/src/components/SiteFooter/CompanyLinks.svelte index 239a704d..d5bbba2b 100644 --- a/src/components/SiteFooter/CompanyLinks.svelte +++ b/src/components/SiteFooter/CompanyLinks.svelte @@ -14,7 +14,17 @@ linkedin: LinkedIn, }; - let { links = {} } = $props(); + interface Props { + links: { + company_description?: string; + social_links?: { + type: string; + url: string; + }[]; + }; + } + + let { links = {} }: Props = $props(); {#if links.social_links} @@ -29,7 +39,8 @@