From a6eb5c53f3a4be5a668a91b7616f24167f8d4aea Mon Sep 17 00:00:00 2001 From: Oleg Stepura Date: Thu, 13 Jul 2017 20:20:33 +0200 Subject: [PATCH] ListItem legend may be a node as well (#1496) Currently it works, but produces a warning by react typechecking --- components/list/ListItemContent.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/list/ListItemContent.js b/components/list/ListItemContent.js index 561be326..60e38293 100644 --- a/components/list/ListItemContent.js +++ b/components/list/ListItemContent.js @@ -15,7 +15,10 @@ const factory = (ListItemText) => { PropTypes.node, ]), children: PropTypes.node, - legend: PropTypes.string, + legend: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.node, + ]), theme: PropTypes.shape({ auto: PropTypes.string, itemContentRoot: PropTypes.string,