Skip to content

Commit

Permalink
chore(nuxt-layer-primo): RouteLink rename to NuxtLink
Browse files Browse the repository at this point in the history
  • Loading branch information
byronogis committed Dec 16, 2024
1 parent 3a20fc7 commit c56d155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt-layer-primo/components/Primo/PrimoMenuItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function checkActiveRoute(item: PrimoSidebarMenuItem) {
<NuxtIcon v-if="item.items" name="i-prime:angle-down" class="layout-submenu-toggler" />
</a>

<router-link
<NuxtLink
v-if="item.to && !item.items"
:class="[
item.class,
Expand All @@ -106,7 +106,7 @@ function checkActiveRoute(item: PrimoSidebarMenuItem) {
<NuxtIcon v-if="item.icon" :name="item.icon" class="layout-menuitem-icon" />
<span class="layout-menuitem-text">{{ item.label }}</span>
<NuxtIcon v-if="item.items" name="i-prime:angle-down" class="layout-submenu-toggler" />
</router-link>
</NuxtLink>

<Transition v-if="item.items" name="layout-submenu">
<ul v-show="root ? true : isActiveMenu" class="layout-submenu">
Expand Down

0 comments on commit c56d155

Please # to comment.