small update to include a class on the cookieconsent bar

This commit is contained in:
Rick van Lieshout 2018-02-02 19:41:50 +01:00
parent e090396f4f
commit 8734798a3d
3 changed files with 3 additions and 3 deletions

View File

@ -810,7 +810,7 @@ var CookieConsent = function (_Component) {
return _react2.default.createElement(
"div",
{ style: myStyle },
{ className: "cookieConsent", style: myStyle },
this.props.children,
_react2.default.createElement(
"button",

View File

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

View File

@ -100,7 +100,7 @@ class CookieConsent extends Component {
}
return (
<div style={myStyle}>
<div className="cookieConsent" style={myStyle}>
{this.props.children}
<button
style={myButtonStyle}