@@ -12,11 +12,11 @@ import React from 'react';
1212import { closeTopBarMenu , toggleTopBarMenu } from '../../actions' ;
1313import { getOpenTopBarMenu } from '../../selectors' ;
1414
15- export function MenuItem ( { children, isDisabled , isEnabled , onClick} ) {
15+ export function MenuItem ( { children, isActive , isDisabled , onClick} ) {
1616 return (
1717 < div
1818 className = { classnames ( 'top-bar__menu-item' , {
19- 'top-bar__menu-item_active' : isEnabled ,
19+ 'top-bar__menu-item_active' : isActive ,
2020 'top-bar__menu-item_disabled' : isDisabled ,
2121 } ) }
2222 onClick = { isDisabled ? noop : onClick }
@@ -28,14 +28,14 @@ export function MenuItem({children, isDisabled, isEnabled, onClick}) {
2828
2929MenuItem . propTypes = {
3030 children : PropTypes . node . isRequired ,
31+ isActive : PropTypes . bool ,
3132 isDisabled : PropTypes . bool ,
32- isEnabled : PropTypes . bool ,
3333 onClick : PropTypes . func . isRequired ,
3434} ;
3535
3636MenuItem . defaultProps = {
37+ isActive : false ,
3738 isDisabled : false ,
38- isEnabled : false ,
3939} ;
4040
4141export default function createMenu ( {
0 commit comments