Skip to content

Commit 77d5672

Browse files
fix(ui): noPrefetch and prefetch warnings
1 parent 45790b1 commit 77d5672

File tree

1 file changed

+26
-28
lines changed

1 file changed

+26
-28
lines changed

app/components/Link/Base.vue

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,39 @@ import type { NuxtLinkProps } from '#app'
33
import type { IconClass } from '~/types'
44
55
const props = withDefaults(
6-
defineProps<
7-
{
8-
/** Disabled links will be displayed as plain text */
9-
disabled?: boolean
10-
/**
11-
* `type` should never be used, because this will always be a link.
12-
* */
13-
type?: never
14-
variant?: 'button-primary' | 'button-secondary' | 'link'
15-
size?: 'small' | 'medium'
16-
block?: boolean
6+
defineProps<{
7+
/** Disabled links will be displayed as plain text */
8+
disabled?: boolean
9+
/**
10+
* `type` should never be used, because this will always be a link.
11+
* */
12+
type?: never
13+
variant?: 'button-primary' | 'button-secondary' | 'link'
14+
size?: 'small' | 'medium'
15+
block?: boolean
1716
18-
ariaKeyshortcuts?: string
17+
ariaKeyshortcuts?: string
1918
20-
/**
21-
* Don't use this directly. This will automatically be set to `_blank` for external links passed via `to`.
22-
*/
23-
target?: never
19+
/**
20+
* Don't use this directly. This will automatically be set to `_blank` for external links passed via `to`.
21+
*/
22+
target?: never
2423
25-
/**
26-
* Don't use this directly. This will automatically be set for external links passed via `to`.
27-
*/
28-
rel?: never
24+
/**
25+
* Don't use this directly. This will automatically be set for external links passed via `to`.
26+
*/
27+
rel?: never
2928
30-
classicon?: IconClass
29+
classicon?: IconClass
3130
32-
to?: NuxtLinkProps['to']
31+
to?: NuxtLinkProps['to']
3332
34-
/** always use `to` instead of `href` */
35-
href?: never
33+
/** always use `to` instead of `href` */
34+
href?: never
3635
37-
/** should only be used for links where the context makes it very clear they are clickable. Don't just use this, because you don't like underlines. */
38-
noUnderline?: boolean
39-
} & NuxtLinkProps
40-
>(),
36+
/** should only be used for links where the context makes it very clear they are clickable. Don't just use this, because you don't like underlines. */
37+
noUnderline?: boolean
38+
}>(),
4139
{ variant: 'link', size: 'medium' },
4240
)
4341

0 commit comments

Comments
 (0)