Merge pull request #2 from jay-bricksoft/patch-1

allow React-Components as buttonText #1
This commit is contained in:
Rick van Lieshout 2018-05-01 11:09:36 +02:00 committed by GitHub
commit 6ec67b1357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ CookieConsent.propTypes = {
children: PropTypes.any, // eslint-disable-line react/forbid-prop-types children: PropTypes.any, // eslint-disable-line react/forbid-prop-types
disableStyles: PropTypes.bool, disableStyles: PropTypes.bool,
onAccept: PropTypes.func, onAccept: PropTypes.func,
buttonText: PropTypes.string, buttonText: PropTypes.oneOf([PropTypes.string,PropTypes.func])
cookieName: PropTypes.string cookieName: PropTypes.string
}; };
CookieConsent.defaultProps = { CookieConsent.defaultProps = {
@ -135,4 +135,4 @@ CookieConsent.defaultProps = {
}; };
export default CookieConsent; export default CookieConsent;
export {Cookies}; export {Cookies};