mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +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 (
|
||||
<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>
|
||||
<ExternalLink />
|
||||
</Icon>
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ export interface LinkButtonProps extends ButtonProps {
|
|||
target?: string;
|
||||
scroll?: boolean;
|
||||
variant?: any;
|
||||
prefetch?: boolean;
|
||||
children?: ReactNode;
|
||||
}
|
||||
|
||||
|
|
@ -16,6 +17,7 @@ export function LinkButton({
|
|||
variant,
|
||||
scroll = true,
|
||||
target,
|
||||
prefetch,
|
||||
children,
|
||||
...props
|
||||
}: LinkButtonProps) {
|
||||
|
|
@ -23,7 +25,7 @@ export function LinkButton({
|
|||
|
||||
return (
|
||||
<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}
|
||||
</Link>
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue