this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Proper passing of props

+3 -2
+3 -2
src/components/menu-link.jsx
··· 3 3 import Link from './link'; 4 4 5 5 function MenuLink(props) { 6 + const { className, disabled, ...restProps } = props; 6 7 return ( 7 - <FocusableItem> 8 + <FocusableItem className={className} disabled={disabled}> 8 9 {({ ref, closeMenu }) => ( 9 10 <Link 10 - {...props} 11 + {...restProps} 11 12 ref={ref} 12 13 onClick={({ detail }) => 13 14 closeMenu(detail === 0 ? 'Enter' : undefined)