Don't prefetch pixel links.

This commit is contained in:
Mike Cao 2025-10-30 17:05:11 -07:00
parent dfe969cabe
commit b08a6e1113
2 changed files with 4 additions and 2 deletions

View file

@ -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>