NuxtLink migration (#262)

Co-authored-by: Forms Dev <chirag+new@notionforms.io>
This commit is contained in:
Chirag Chhatrala
2023-12-22 14:54:51 +05:30
committed by GitHub
parent aa38aac626
commit 3d92637ef5
13 changed files with 38 additions and 38 deletions

View File

@@ -32,9 +32,9 @@
<template-tags :template="template"
class="flex mt-4 items-center flex-wrap gap-3"
/>
<router-link :to="{params:{slug:template.slug},name:'templates-slug'}" title="">
<NuxtLink :to="{params:{slug:template.slug},name:'templates-slug'}" title="">
<span class="absolute inset-0" aria-hidden="true" />
</router-link>
</NuxtLink>
</div>
</template>

View File

@@ -48,13 +48,13 @@
</div>
<div class="grid grid-cols-1 gap-x-8 gap-y-4 mt-8 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
<router-link v-for="row in types" :key="row.slug"
<NuxtLink v-for="row in types" :key="row.slug"
:to="{params: {slug:row.slug}, name:'templates-types-slug'}"
:title="row.name"
class="text-gray-600 dark:text-gray-400 transition-colors duration-300 hover:text-nt-blue"
>
{{ row.name }}
</router-link>
</NuxtLink>
</div>
</div>
</section>
@@ -71,13 +71,13 @@
</div>
<div class="grid grid-cols-1 gap-x-8 gap-y-4 mt-8 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
<router-link v-for="row in industries" :key="row.slug"
<NuxtLink v-for="row in industries" :key="row.slug"
:to="{params:{slug:row.slug}, name:'templates-industries-slug'}"
:title="row.name"
class="text-gray-600 dark:text-gray-400 transition-colors duration-300 hover:text-nt-blue"
>
{{ row.name }}
</router-link>
</NuxtLink>
</div>
</div>
</section>