Skip to content

Commit

Permalink
fix(ActionMenuItemWrapper): Icon prop was required (now optional)
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Mar 23, 2023
1 parent 0007d81 commit 58b98a6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions react/ActionMenu/ActionMenuItemWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@ const ActionMenuItemWrapper = ({
[styles.disabledItem]: !isEnabled
})}
left={
<Icon
icon={icon}
className={cx({
[styles.disabledIcon]: !isEnabled
})}
{...componentsProps?.iconProps}
/>
icon && (
<Icon
icon={icon}
className={cx({
[styles.disabledIcon]: !isEnabled
})}
{...componentsProps?.iconProps}
/>
)
}
onClick={onClick}
>
Expand Down

0 comments on commit 58b98a6

Please sign in to comment.