diff --git a/src/index.js b/src/index.js index d40b9a1..847fa16 100644 --- a/src/index.js +++ b/src/index.js @@ -123,7 +123,7 @@ CookieConsent.propTypes = { children: PropTypes.any, // eslint-disable-line react/forbid-prop-types disableStyles: PropTypes.bool, onAccept: PropTypes.func, - buttonText: PropTypes.oneOfType([PropTypes.string,PropTypes.func]), + buttonText: PropTypes.oneOfType([PropTypes.string,PropTypes.func,PropTypes.element]), cookieName: PropTypes.string }; CookieConsent.defaultProps = {