From eb4b3c10b2a2d8e865fba198d46f2a3d5e8ff76f Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Fri, 12 Sep 2025 19:17:29 +0200 Subject: [PATCH] feat: add scroll animation and fix TypeScript type error in useInView hook --- src/components/AppDemo.tsx | 2 +- src/components/HomeAbout.tsx | 2 +- src/components/HomeHero.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/AppDemo.tsx b/src/components/AppDemo.tsx index 73ea1fe..4ee97a0 100644 --- a/src/components/AppDemo.tsx +++ b/src/components/AppDemo.tsx @@ -40,7 +40,7 @@ function Chart({ let id = useId() let svgRef = useRef>(null) let pathRef = useRef>(null) - let isInView = useInView(svgRef, { amount: 0.5, once: true }) + let isInView = useInView(svgRef as React.RefObject, { amount: 0.5, once: true }) let pathWidth = useMotionValue(0) let [interactionEnabled, setInteractionEnabled] = useState(false) diff --git a/src/components/HomeAbout.tsx b/src/components/HomeAbout.tsx index aa21cc9..a20763c 100644 --- a/src/components/HomeAbout.tsx +++ b/src/components/HomeAbout.tsx @@ -37,7 +37,7 @@ export function HomeAbout() { const [mobileMenuOpen, setMobileMenuOpen] = useState(false) return ( -
+
Building the infrastructure where AI agents can live, communicate, and evolve with complete sovereignty. - +