Skip to content

Commit

Permalink
Resolve type-check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival-space committed May 13, 2024
1 parent 50b8761 commit 1c36d7d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions src/components/sections/Centered2x2GridSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/components/sections/HeroSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

<script setup lang="ts">
const props = defineProps({
title: String | null,
description: String
title: { type: String, default: null, required: false },
description: { type: String, required: true }
})
</script>

Expand Down
6 changes: 3 additions & 3 deletions src/components/sections/ImageLeftFeatureSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/components/sections/ImageRightFeatureSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/components/sections/SquareImageFeatureSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{ description }}
</p>
<ul v-if="features != null" class="text-gray-600 grid grid-cols-1 gap-y-3 gap-x-4 mt-10 md:gap-x-8 md:grid-cols-2">
<li v-for="feature in features" :key="feature" class="flex gap-[0.75rem]">
<li v-for="feature in features" :key="feature.name" class="flex gap-[0.75rem]">
<FontAwesomeIcon :icon="feature.icon" class="flex-none w-[1.25rem] h-[1.75rem]"></FontAwesomeIcon>
{{ feature.name }}
</li>
Expand All @@ -31,7 +31,7 @@ import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome";
import type {IconDefinition} from "@fortawesome/free-regular-svg-icons";
interface FeaturePoint {
name: String,
name: string,
icon: IconDefinition
}
Expand Down
12 changes: 6 additions & 6 deletions src/components/sections/TeamSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<p class="text-indigo-600">{{ person.role }}</p>
</div>
<ul role="list" class="flex space-x-5">
<li v-for="connection in person.connections" :key="connection">
<li v-for="connection in person.connections" :key="connection.to">
<a :href="connection.to" class="text-gray-400 hover:text-gray-500">
<span class="sr-only">{{ connection.name }}</span>
<FontAwesomeIcon class="w-5 h-5" :icon="connection.icon"></FontAwesomeIcon>
Expand All @@ -38,16 +38,16 @@ import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome";
import type {IconDefinition} from "@fortawesome/free-regular-svg-icons";
interface PersonInformation {
name: String,
imageUrl: String,
role: String,
name: string,
imageUrl: string,
role: string,
connections: Connection[]
}
interface Connection {
name: String,
name: string,
icon: IconDefinition,
to: String,
to: string,
}
const props = defineProps({
Expand Down

0 comments on commit 1c36d7d

Please sign in to comment.