diff --git a/src/index.js b/src/index.js index 0b7cacd..ee0c938 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.string, + buttonText: PropTypes.oneOf([PropTypes.string,PropTypes.func]) cookieName: PropTypes.string }; CookieConsent.defaultProps = { @@ -135,4 +135,4 @@ CookieConsent.defaultProps = { }; export default CookieConsent; -export {Cookies}; \ No newline at end of file +export {Cookies};