ListItem legend may be a node as well (#1496)

Currently it works, but produces a warning by react typechecking
old
Oleg Stepura 2017-07-13 20:20:33 +02:00 committed by Javi Velasco
parent 4722904d25
commit a6eb5c53f3
1 changed files with 4 additions and 1 deletions

View File

@ -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,