Skip to content

Commit

Permalink
update AppreciationCard
Browse files Browse the repository at this point in the history
  • Loading branch information
LandmineHQ committed Mar 31, 2024
1 parent 90c4a39 commit a27e04d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/AppreciationCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
<IconAvatar :avatar="props.avatar" />
<div class="name">
<font>
<a :href="props.link" :target="props.link ? '_blank' : '_self'">{{
<a v-if="props.link" :href="props.link" target="_blank">{{
props.name
}}</a>
<a v-else target="_self">{{ props.name }}</a>
</font>
<font>{{ props.contribute }}</font>
</div>
Expand All @@ -21,6 +22,7 @@
</template>

<script setup lang="ts">
import type { link } from "fs";
import IconAvatar from "./icons/IconAvatar.vue";
const props = defineProps({
Expand Down Expand Up @@ -52,7 +54,7 @@ const props = defineProps({
link: {
type: String,
required: false,
default: "#",
default: "",
},
});
</script>
Expand Down

0 comments on commit a27e04d

Please sign in to comment.