fix(dashboard-v2): fix propTypes for Switch

This commit is contained in:
Michał Leszczyk 2022-03-16 09:04:45 +01:00
parent 6be5e45703
commit 99d8204118
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
1 changed files with 1 additions and 1 deletions

View File

@ -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.
*/ */