Skip to content

Commit 05fc000

Browse files
committed
Remove unused prop
This was changed in #587
1 parent d364269 commit 05fc000

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

app/components/Card.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<script setup lang="ts">
22
defineProps<{
3-
/** Whether this suggestion is currently selected (keyboard nav) */
4-
selected?: boolean
53
/** Whether this is an exact match for the query */
64
isExactMatch?: boolean
75
}>()
@@ -11,7 +9,6 @@ defineProps<{
119
<article
1210
class="group bg-bg-subtle border border-border rounded-lg p-4 sm:p-6 transition-[border-color,background-color] duration-200 hover:(border-border-hover bg-bg-muted) cursor-pointer relative focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-bg focus-within:ring-offset-2 focus-within:ring-fg/50 focus-within:bg-bg-muted focus-within:border-border-hover"
1311
:class="{
14-
'bg-bg-muted border-border-hover': selected,
1512
'border-accent/30 bg-accent/5': isExactMatch,
1613
}"
1714
>

app/components/PackageCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const isExactMatch = computed(() => {
2222
</script>
2323

2424
<template>
25-
<Card :selected="selected" :isExactMatch="isExactMatch">
25+
<Card :isExactMatch="isExactMatch">
2626
<div class="mb-2 flex items-baseline justify-start gap-2">
2727
<component
2828
:is="headingLevel ?? 'h3'"

app/components/SearchSuggestionCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defineProps<{
1212
</script>
1313

1414
<template>
15-
<Card :selected="selected" :isExactMatch="isExactMatch">
15+
<Card :isExactMatch="isExactMatch">
1616
<NuxtLink
1717
:to="type === 'user' ? `/~${name}` : `/@${name}`"
1818
:data-suggestion-index="index"

0 commit comments

Comments
 (0)