From b4f935bdd685407e521d86206c2549eac5e7d474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=A8await?= <1335360669@qq.com> Date: Thu, 17 Sep 2026 10:56:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E4=BF=AE=E5=A4=8D=20HoverBorderGra?= =?UTF-8?q?dient=20=E6=B3=9B=E5=9E=8B=20Tag=20=E4=BC=A0=E9=80=92=E4=B8=8E?= =?UTF-8?q?=20JSX=20children=20=E7=B1=BB=E5=9E=8B=E6=8E=A8=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ui/aceternity/hover-border-gradient.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/components/ui/aceternity/hover-border-gradient.tsx b/web/src/components/ui/aceternity/hover-border-gradient.tsx index 974130405..019893382 100644 --- a/web/src/components/ui/aceternity/hover-border-gradient.tsx +++ b/web/src/components/ui/aceternity/hover-border-gradient.tsx @@ -43,7 +43,7 @@ export function HoverBorderGradient({ onMouseLeave, ...props }: HoverBorderGradientProps) { - const Tag = (as || "button") as ElementType; + const Tag = (as || "button") as any; const reducedMotion = useReducedMotion(); const [hovered, setHovered] = useState(false); const [direction, setDirection] = useState("TOP"); @@ -58,15 +58,15 @@ export function HoverBorderGradient({ return ( ) => { setHovered(true); - onMouseEnter?.(event as never); + (onMouseEnter as any)?.(event); }} onMouseLeave={(event: MouseEvent) => { setHovered(false); - onMouseLeave?.(event as never); + (onMouseLeave as any)?.(event); }} >
{children}