File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import { forwardRef } from 'react' ;
22import styles from '@patternfly/react-styles/css/components/Menu/menu' ;
33import { css } from '@patternfly/react-styles' ;
4- import StarIcon from '@patternfly/react-icons/dist/esm/icons/star-icon' ;
54import { MenuContext , MenuItemContext } from './MenuContext' ;
65import { Button } from '../Button' ;
76export interface MenuItemActionProps extends React . HTMLProps < HTMLDivElement > {
@@ -60,9 +59,11 @@ const MenuItemActionBase: React.FunctionComponent<MenuItemActionProps> = ({
6059 ref = { innerRef }
6160 role = "menuitem"
6261 variant = "plain"
62+ isFavorite = { isFavorited !== null }
63+ isFavorited = { isFavorited ?? false }
6364 tabIndex = { - 1 }
6465 isDisabled = { isDisabled || isDisabledContext }
65- icon = { icon === 'favorites' || isFavorited !== null ? < StarIcon /> : icon }
66+ icon = { isFavorited === null ? icon : undefined }
6667 />
6768 </ div >
6869 ) ;
You can’t perform that action at this time.
0 commit comments