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 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-02-23 13:53:24 +00:00
parent 239e6a4c43
commit dcd6eb487e

View file

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