diff --git a/src/components/common/SplitbeeAnalytics.astro b/src/components/common/SplitbeeAnalytics.astro index b3c349a..66651db 100644 --- a/src/components/common/SplitbeeAnalytics.astro +++ b/src/components/common/SplitbeeAnalytics.astro @@ -3,4 +3,4 @@ const { doNotTrack = true, noCookieMode = false, url = 'https://cdn.splitbee.io/ --- - + diff --git a/src/components/ui/Background.astro b/src/components/ui/Background.astro index 791cef9..28eedf5 100644 --- a/src/components/ui/Background.astro +++ b/src/components/ui/Background.astro @@ -1,4 +1,8 @@ --- +export interface Props { + isDark?: boolean +} + const { isDark = false } = Astro.props; --- diff --git a/src/components/ui/Button.astro b/src/components/ui/Button.astro index e68e0fb..d3c2398 100644 --- a/src/components/ui/Button.astro +++ b/src/components/ui/Button.astro @@ -1,7 +1,7 @@ --- import { Icon } from 'astro-icon/components'; import { twMerge } from 'tailwind-merge'; -import type { CallToAction } from '~/types'; +import type { CallToAction as Props } from '~/types'; const { variant = 'secondary', @@ -11,7 +11,7 @@ const { class: className = '', type, ...rest -} = Astro.props as CallToAction; +} = Astro.props; const variants = { primary: 'btn-primary', diff --git a/src/components/ui/Form.astro b/src/components/ui/Form.astro index e49f6d9..276b39f 100644 --- a/src/components/ui/Form.astro +++ b/src/components/ui/Form.astro @@ -1,8 +1,8 @@ --- -import type { Form } from '~/types'; +import type { Form as Props } from '~/types'; import Button from '~/components/ui/Button.astro'; -const { inputs, textarea, disclaimer, button = 'Contact us', description = '' } = Astro.props as Form; +const { inputs, textarea, disclaimer, button = 'Contact us', description = '' } = Astro.props; ---