fix / revert #1

`proptypes.oneOf` was wrong: we need to use `proptypes.oneOfType`
This commit is contained in:
Jay Bricksoft 2018-05-01 11:28:09 +02:00 committed by GitHub
parent 1d9e1a5863
commit 204c85f17e
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
disableStyles: PropTypes.bool,
onAccept: PropTypes.func,
buttonText: PropTypes.oneOf([PropTypes.string,PropTypes.func]),
buttonText: PropTypes.oneOfType([PropTypes.string,PropTypes.func]),
cookieName: PropTypes.string
};
CookieConsent.defaultProps = {