Skip to content

Commit

Permalink
remove unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
samyarkd authored and Wxh16144 committed Dec 23, 2022
1 parent a7e3bc3 commit 86ac0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/menu/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const MenuItem: React.FC<MenuItemProps> = (props) => {
{...omit(props, ['title', 'icon', 'danger'])}
className={classNames(
{
[`${prefixCls}-item-danger`]: this.props.disabled ? false : danger,
[`${prefixCls}-item-danger`]: danger,
[`${prefixCls}-item-only-child`]: (icon ? childrenLength + 1 : childrenLength) === 1,
},
className,
Expand Down

0 comments on commit 86ac0e5

Please sign in to comment.