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:
parent
239e6a4c43
commit
dcd6eb487e
1 changed files with 3 additions and 1 deletions
|
|
@ -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}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue