fix(dashboard-v2): fix propTypes for Switch
This commit is contained in:
parent
6be5e45703
commit
99d8204118
|
@ -74,7 +74,7 @@ Switch.propTypes = {
|
||||||
/**
|
/**
|
||||||
* Element to be rendered as the switch label
|
* Element to be rendered as the switch label
|
||||||
*/
|
*/
|
||||||
children: PropTypes.element,
|
children: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),
|
||||||
/**
|
/**
|
||||||
* Pass additional CSS classes to the `label` element.
|
* Pass additional CSS classes to the `label` element.
|
||||||
*/
|
*/
|
||||||
|
|
Reference in New Issue