From 1d9e1a5863bd7172e027ff36922046964aa5e1a0 Mon Sep 17 00:00:00 2001 From: Rick van Lieshout Date: Tue, 1 May 2018 11:13:21 +0200 Subject: [PATCH] fix PR, bump version, build, publish :) --- build/index.js | 2 +- package.json | 2 +- src/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/index.js b/build/index.js index 0ae523c..25090f6 100644 --- a/build/index.js +++ b/build/index.js @@ -837,7 +837,7 @@ CookieConsent.propTypes = { children: _propTypes2.default.any, // eslint-disable-line react/forbid-prop-types disableStyles: _propTypes2.default.bool, onAccept: _propTypes2.default.func, - buttonText: _propTypes2.default.string, + buttonText: _propTypes2.default.oneOf([_propTypes2.default.string, _propTypes2.default.func]), cookieName: _propTypes2.default.string }; CookieConsent.defaultProps = { diff --git a/package.json b/package.json index 696ceb3..cd27172 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "name": "Rick van Lieshout", "email": "info@rickvanlieshout.com" }, - "version": "1.0.4", + "version": "1.0.5", "description": "A small, simple and customizable cookie consent bar for use in React applications.", "main": "build/index.js", "dependencies": { diff --git a/src/index.js b/src/index.js index ee0c938..8e22d45 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.oneOf([PropTypes.string,PropTypes.func]) + buttonText: PropTypes.oneOf([PropTypes.string,PropTypes.func]), cookieName: PropTypes.string }; CookieConsent.defaultProps = {