ListItem legend may be a node as well (#1496)
Currently it works, but produces a warning by react typecheckingold
parent
4722904d25
commit
a6eb5c53f3
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue