From 99d8204118467b46db4db3a9e96cea64df4afe36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Leszczyk?= Date: Wed, 16 Mar 2022 09:04:45 +0100 Subject: [PATCH] fix(dashboard-v2): fix propTypes for Switch --- packages/dashboard-v2/src/components/Switch/Switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard-v2/src/components/Switch/Switch.js b/packages/dashboard-v2/src/components/Switch/Switch.js index 02b361c0..9bf1920c 100644 --- a/packages/dashboard-v2/src/components/Switch/Switch.js +++ b/packages/dashboard-v2/src/components/Switch/Switch.js @@ -74,7 +74,7 @@ Switch.propTypes = { /** * 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. */