Skip to content

Commit 9485afa

Browse files
authored
refactor: remove unnecessary arrow functions (#1773)
1 parent f18d64e commit 9485afa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/components/ScrollToTop.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const shouldShowButton = computed(() => isActive.value && isTouchDeviceClient.va
5050
type="button"
5151
class="fixed bottom-4 inset-ie-4 z-50 w-12 h-12 bg-bg-elevated border border-border rounded-full shadow-lg flex items-center justify-center text-fg-muted hover:text-fg transition-colors active:scale-95"
5252
:aria-label="$t('common.scroll_to_top')"
53-
@click="() => scrollToTop()"
53+
@click="scrollToTop"
5454
>
5555
<span class="i-lucide:arrow-up w-5 h-5" aria-hidden="true" />
5656
</button>

app/pages/package/[[org]]/[name].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ const showSkeleton = shallowRef(false)
892892
variant="secondary"
893893
:title="$t('common.scroll_to_top')"
894894
:aria-label="$t('common.scroll_to_top')"
895-
@click="() => scrollToTop()"
895+
@click="scrollToTop"
896896
classicon="i-lucide:arrow-up"
897897
/>
898898
</ButtonGroup>

0 commit comments

Comments
 (0)