From 51044d0bea3842360a9d6c68369381e66e251fe2 Mon Sep 17 00:00:00 2001 From: Sho Mukai Date: Thu, 7 Nov 2019 08:26:11 +1100 Subject: [PATCH] fix: update Dialogue proptypes for children --- lib/components/Dialogue/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/components/Dialogue/index.js b/lib/components/Dialogue/index.js index 04394150..9ee0c6e6 100644 --- a/lib/components/Dialogue/index.js +++ b/lib/components/Dialogue/index.js @@ -82,7 +82,10 @@ class Dialogue extends React.Component { } Dialogue.propTypes = { - children: PropTypes.element, + children: PropTypes.oneOfType([ + PropTypes.node, + PropTypes.arrayOf(PropTypes.node) + ]), /** Specifies the width of the Dialogue in pixels */ width: PropTypes.string, /** Specifies the text for the button that triggers the dialogue */