From 1c36d7dc507764124d6b44f1e1088f4de473d43d Mon Sep 17 00:00:00 2001 From: parzival-space Date: Mon, 13 May 2024 09:50:04 +0200 Subject: [PATCH] Resolve type-check errors --- src/components/sections/Centered2x2GridSection.vue | 6 +++--- src/components/sections/HeroSection.vue | 4 ++-- src/components/sections/ImageLeftFeatureSection.vue | 6 +++--- src/components/sections/ImageRightFeatureSection.vue | 6 +++--- .../sections/SquareImageFeatureSection.vue | 4 ++-- src/components/sections/TeamSection.vue | 12 ++++++------ 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/components/sections/Centered2x2GridSection.vue b/src/components/sections/Centered2x2GridSection.vue index 2e91b46..95a201b 100644 --- a/src/components/sections/Centered2x2GridSection.vue +++ b/src/components/sections/Centered2x2GridSection.vue @@ -28,13 +28,13 @@ import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome"; import type {IconDefinition} from "@fortawesome/free-regular-svg-icons"; interface FeaturePoint { - name: String, - description: String, + name: string, + description: string, icon: IconDefinition } const props = defineProps({ - title: String | null, + title: { type: String, default: null, required: false }, subtitle: String, description: String, imageUrl: String, diff --git a/src/components/sections/HeroSection.vue b/src/components/sections/HeroSection.vue index aca2361..053b3eb 100644 --- a/src/components/sections/HeroSection.vue +++ b/src/components/sections/HeroSection.vue @@ -32,8 +32,8 @@ diff --git a/src/components/sections/ImageLeftFeatureSection.vue b/src/components/sections/ImageLeftFeatureSection.vue index 074c10d..c305723 100644 --- a/src/components/sections/ImageLeftFeatureSection.vue +++ b/src/components/sections/ImageLeftFeatureSection.vue @@ -39,13 +39,13 @@ import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome"; import type {IconDefinition} from "@fortawesome/free-regular-svg-icons"; interface FeaturePoint { - name: String, - description: String, + name: string, + description: string, icon: IconDefinition } const props = defineProps({ - title: String | null, + title: { type: String, default: null, required: false }, subtitle: String, description: String, imageUrl: String, diff --git a/src/components/sections/ImageRightFeatureSection.vue b/src/components/sections/ImageRightFeatureSection.vue index 24c830f..df98dea 100644 --- a/src/components/sections/ImageRightFeatureSection.vue +++ b/src/components/sections/ImageRightFeatureSection.vue @@ -37,13 +37,13 @@ import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome"; import type {IconDefinition} from "@fortawesome/free-regular-svg-icons"; interface FeaturePoint { - name: String, - description: String, + name: string, + description: string, icon: IconDefinition } const props = defineProps({ - title: String | null, + title: { type: String, default: null, required: false }, subtitle: String, description: String, imageUrl: String, diff --git a/src/components/sections/SquareImageFeatureSection.vue b/src/components/sections/SquareImageFeatureSection.vue index dcae76d..0c9a89b 100644 --- a/src/components/sections/SquareImageFeatureSection.vue +++ b/src/components/sections/SquareImageFeatureSection.vue @@ -14,7 +14,7 @@ {{ description }}