From 0bca353ed5a222e9bbc2748e3a438bb11f14b7df Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Mon, 3 Sep 2018 15:29:42 +0200 Subject: [PATCH] Fix prop type --- src/components/buttons/Button/index.js | 2 +- src/components/buttons/NotificationButton/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,