diff --git a/src/components/buttons/Button/index.js b/src/components/buttons/Button/index.js index 49ec94af..c8ec08b2 100644 --- a/src/components/buttons/Button/index.js +++ b/src/components/buttons/Button/index.js @@ -152,7 +152,7 @@ const Button = ({ ); Button.propTypes = { - children: PropTypes.element.isRequired, + children: PropTypes.node.isRequired, className: PropTypes.string, onClick: PropTypes.func, isDisabled: PropTypes.bool, diff --git a/src/components/buttons/NotificationButton/index.js b/src/components/buttons/NotificationButton/index.js index 8e1053f7..97ef5ada 100644 --- a/src/components/buttons/NotificationButton/index.js +++ b/src/components/buttons/NotificationButton/index.js @@ -84,7 +84,7 @@ const NotificationButton = ({ ); NotificationButton.propTypes = { - children: PropTypes.element.isRequired, + children: PropTypes.node.isRequired, type: PropTypes.string.isRequired, className: PropTypes.string, onClick: PropTypes.func,