Skip to content

Commit 12e85dd

Browse files
committed
fix: ensure button opens in new tab and enforce icon prop as required
1 parent b01003f commit 12e85dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ProjectCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
variant="secondary"
6969
:href="buttonHref"
7070
:disabled="buttonDisabled"
71-
v-bind="buttonHref ? { target: '_blank' } : {}"
71+
v-bind="{ target: '_blank' }"
7272
:rel="buttonRel"
7373
class="w-full"
7474
>
@@ -89,7 +89,7 @@ import Button from './ui/Button.vue';
8989
interface Props {
9090
title: string;
9191
description: string;
92-
icon?: string;
92+
icon: string;
9393
iconImage?: string;
9494
status: 'available' | 'coming-soon' | 'interactive';
9595
statusLabel: string;

0 commit comments

Comments
 (0)