version bump and build

This commit is contained in:
Rick van Lieshout 2018-07-28 13:24:44 +02:00
parent 38b8d752bb
commit 27833943f0
3 changed files with 5 additions and 3 deletions

View File

@ -725,7 +725,9 @@ var CookieConsent = function (_Component) {
}(_react.Component);
CookieConsent.propTypes = {
location: _propTypes2.default.oneOf(Object.values(OPTIONS)),
location: _propTypes2.default.oneOf(Object.keys(OPTIONS).map(function (key) {
return OPTIONS[key];
})),
style: _propTypes2.default.object,
buttonStyle: _propTypes2.default.object,
contentStyle: _propTypes2.default.object,

View File

@ -4,7 +4,7 @@
"name": "Rick van Lieshout",
"email": "info@rickvanlieshout.com"
},
"version": "1.6.0",
"version": "1.6.1",
"description": "A small, simple and customizable cookie consent bar for use in React applications.",
"main": "build/index.js",
"dependencies": {

View File

@ -169,7 +169,7 @@ class CookieConsent extends Component {
}
CookieConsent.propTypes = {
location: PropTypes.oneOf(Object.values(OPTIONS)),
location: PropTypes.oneOf(Object.keys(OPTIONS).map(key => OPTIONS[key])),
style: PropTypes.object,
buttonStyle: PropTypes.object,
contentStyle: PropTypes.object,