From 2c115bab99cfa8f1424d4c2b63ed9504c9b984b2 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Mon, 23 Feb 2026 13:55:57 +0000 Subject: [PATCH] fix: resolve all TypeScript build errors - InteractiveMenu: block body on textRefs callback (void return) - TextHoverEffect: remove stale @ts-expect-error (now unused) Co-Authored-By: Claude Sonnet 4.6 --- src/components/ui/InteractiveMenu.tsx | 4 +++- src/components/ui/TextHoverEffect.tsx | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ui/InteractiveMenu.tsx b/src/components/ui/InteractiveMenu.tsx index 230cd1b..0748c4e 100644 --- a/src/components/ui/InteractiveMenu.tsx +++ b/src/components/ui/InteractiveMenu.tsx @@ -69,7 +69,9 @@ export function InteractiveMenu({ items, accentColor, onSelect }: InteractiveMen (textRefs.current[index] = el as HTMLElement)} + ref={(el) => { + textRefs.current[index] = el as HTMLElement; + }} > {item.label} diff --git a/src/components/ui/TextHoverEffect.tsx b/src/components/ui/TextHoverEffect.tsx index 98d7734..3a192dc 100644 --- a/src/components/ui/TextHoverEffect.tsx +++ b/src/components/ui/TextHoverEffect.tsx @@ -45,7 +45,6 @@ export const TextHoverEffect = ({ className={cn('cursor-pointer select-none', className)} > - {/* @ts-expect-error — motion.radialGradient is valid framer-motion SVG element */}