Skip to content

Commit

Permalink
feat: Use nuxt-link (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
janmichek authored Oct 24, 2024
1 parent 4150fc1 commit 5e4cb79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AppLink.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<router-link
<nuxt-link
v-if="isLocalLink(to)"
:to="to"
:class="['link', {'link--primary': variant === 'primary'}, {'link--text-link': isTextLink}]"
active-class="link--active"
exact-active-class="link--exact-active">
<slot/>
</router-link>
</nuxt-link>
<a
v-else
:rel="isOpenedInNewTab ? 'noopener noreferrer' : false"
Expand Down

0 comments on commit 5e4cb79

Please sign in to comment.