Skip to content

Commit

Permalink
fix(SideNav): use v-for on li instead of links
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jul 13, 2020
1 parent ab8b178 commit d7fed1f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions components/layout/navigation/sidenav/SideNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,8 @@
<!-- Navbar Links -->
<nav class="flex flex-col justify-between flex-1 p-3 bg-background">
<ul class="leading-loose text-center md:text-left">
<li>
<nuxt-link
v-for="link in sideNavLinks"
:key="link.url"
class="nav-links"
:to="link.url"
>
<li v-for="link in sideNavLinks" :key="link.url">
<nuxt-link class="nav-links" :to="link.url">
<span class="absolute inset-0 opacity-0" />
<span class="relative" v-text="link.title" />
</nuxt-link>
Expand Down

0 comments on commit d7fed1f

Please sign in to comment.