Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Dec 30, 2023
1 parent a986f7f commit 2d7619a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export default defineNuxtConfig({
headNext: true,
inlineRouteRules: true,
typedPages: true,
typescriptBundlerResolution: true,
},

devtools: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/app/search-modal.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const {
:key="`searchResult-page-${index}`"
>
<nuxt-link-locale
:to="page.route"
:to="(page.route as typeof page.route | undefined)"
@click="closeModal()"
>
<div class="flex items-center gap-2">
Expand Down
2 changes: 1 addition & 1 deletion src/components/hover/user-card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const props = defineProps<{

<template>
<VTooltip delay="{ show: 500, hide: 100 }" placement="right">
<nuxt-link-locale :to="to">
<nuxt-link-locale :to="to as any">
{{ props.user.name }}
</nuxt-link-locale>

Expand Down
2 changes: 1 addition & 1 deletion src/pages/clan/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async function requestLeave() {
Owner
</dt>
<dd class="striped-text">
<nuxt-link-locale :to="{ name: 'user-handle', param: { handle: clan.owner.safeName } }" class="flex items-center gap-1">
<nuxt-link-locale :to="{ name: 'user-handle', params: { handle: clan.owner.safeName } }" class="flex items-center gap-1">
<div class="w-8 h-8 mask mask-squircle">
<img :src="clan.owner.avatarSrc" alt="avatar">
</div>
Expand Down

0 comments on commit 2d7619a

Please sign in to comment.