mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-01-20 18:41:44 +01:00
allow React-Components as buttonText #1
This commit is contained in:
parent
5093fd4339
commit
a3eb463c84
@ -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};
|
||||
export {Cookies};
|
||||
|
Loading…
Reference in New Issue
Block a user