Skip to content

Commit 2f33f92

Browse files
committed
chore: remove explicit class prop
1 parent 565dbe6 commit 2f33f92

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

app/components/BackButton.vue

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
<script setup lang="ts">
22
const router = useRouter()
33
const canGoBack = useCanGoBack()
4-
5-
withDefaults(
6-
defineProps<{
7-
class?: string
8-
}>(),
9-
{
10-
class: '',
11-
},
12-
)
134
</script>
145

156
<template>
167
<button
178
v-if="canGoBack"
189
type="button"
19-
:class="[
20-
'inline-flex items-center gap-2 p-1.5 -mx-1.5 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded focus-visible:outline-accent/70 shrink-0',
21-
$props.class,
22-
]"
10+
class="inline-flex items-center gap-2 p-1.5 -mx-1.5 font-mono text-sm text-fg-muted hover:text-fg transition-colors duration-200 rounded focus-visible:outline-accent/70 shrink-0"
2311
@click="router.back()"
2412
>
2513
<span class="i-lucide:arrow-left rtl-flip w-4 h-4" aria-hidden="true" />

0 commit comments

Comments
 (0)