mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Don't prefetch pixel links.
This commit is contained in:
parent
dfe969cabe
commit
b08a6e1113
2 changed files with 4 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ export function PixelHeader() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageHeader title={pixel.name} icon={<Grid2x2 />} marginBottom="3">
|
<PageHeader title={pixel.name} icon={<Grid2x2 />} marginBottom="3">
|
||||||
<LinkButton href={getSlugUrl(pixel.slug)} target="_blank">
|
<LinkButton href={getSlugUrl(pixel.slug)} target="_blank" prefetch={false}>
|
||||||
<Icon>
|
<Icon>
|
||||||
<ExternalLink />
|
<ExternalLink />
|
||||||
</Icon>
|
</Icon>
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ export interface LinkButtonProps extends ButtonProps {
|
||||||
target?: string;
|
target?: string;
|
||||||
scroll?: boolean;
|
scroll?: boolean;
|
||||||
variant?: any;
|
variant?: any;
|
||||||
|
prefetch?: boolean;
|
||||||
children?: ReactNode;
|
children?: ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -16,6 +17,7 @@ export function LinkButton({
|
||||||
variant,
|
variant,
|
||||||
scroll = true,
|
scroll = true,
|
||||||
target,
|
target,
|
||||||
|
prefetch,
|
||||||
children,
|
children,
|
||||||
...props
|
...props
|
||||||
}: LinkButtonProps) {
|
}: LinkButtonProps) {
|
||||||
|
|
@ -23,7 +25,7 @@ export function LinkButton({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button {...props} variant={variant} asChild>
|
<Button {...props} variant={variant} asChild>
|
||||||
<Link href={href} dir={dir} scroll={scroll} target={target}>
|
<Link href={href} dir={dir} scroll={scroll} target={target} prefetch={prefetch}>
|
||||||
{children}
|
{children}
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue