mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-01-20 18:41:44 +01:00
fix / revert #1
`proptypes.oneOf` was wrong: we need to use `proptypes.oneOfType`
This commit is contained in:
parent
1d9e1a5863
commit
204c85f17e
@ -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.oneOf([PropTypes.string,PropTypes.func]),
|
buttonText: PropTypes.oneOfType([PropTypes.string,PropTypes.func]),
|
||||||
cookieName: PropTypes.string
|
cookieName: PropTypes.string
|
||||||
};
|
};
|
||||||
CookieConsent.defaultProps = {
|
CookieConsent.defaultProps = {
|
||||||
|
Loading…
Reference in New Issue
Block a user