From dcd6eb487e6141dcdf7cdb6267e7fea02769c144 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Mon, 23 Feb 2026 13:53:24 +0000 Subject: [PATCH] fix: ref callback return type in InteractiveMenu Block body prevents implicit return of HTMLButtonElement | null, fixing TS error in stricter React ref type checking. Co-Authored-By: Claude Sonnet 4.6 --- src/components/ui/InteractiveMenu.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ui/InteractiveMenu.tsx b/src/components/ui/InteractiveMenu.tsx index 36386af..230cd1b 100644 --- a/src/components/ui/InteractiveMenu.tsx +++ b/src/components/ui/InteractiveMenu.tsx @@ -58,7 +58,9 @@ export function InteractiveMenu({ items, accentColor, onSelect }: InteractiveMen key={item.label} className={`interactive-menu__item${isActive ? 'active' : ''}`} onClick={() => handleClick(index)} - ref={(el) => (itemRefs.current[index] = el)} + ref={(el) => { + itemRefs.current[index] = el; + }} style={{ '--lineWidth': '0px' } as React.CSSProperties} aria-label={item.label} >