Skip to content

Commit

Permalink
added ReactElement type for title prop in MenuItemGroupProps (#294)
Browse files Browse the repository at this point in the history
* added ReactElement as supported type for title prop in MenuItemGroupProps interface

* switch to ReactNode instead of ReactElement

* remove type string as it is included in ReactNode
  • Loading branch information
antoinm authored and afc163 committed Oct 18, 2019
1 parent e12721b commit 2f6c3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MenuItemGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface MenuItemGroupProps {
className?: string;
subMenuKey?: string;
rootPrefixCls?: string;
title?: string;
title?: React.ReactNode;
onClick?: MenuClickEventHandler;
}

Expand Down

1 comment on commit 2f6c3c6

@vercel
Copy link

@vercel vercel bot commented on 2f6c3c6 Oct 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.