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( return _react2.default.createElement(
"div", "div",
{ style: myStyle }, { className: "cookieConsent", style: myStyle },
this.props.children, this.props.children,
_react2.default.createElement( _react2.default.createElement(
"button", "button",

View File

@ -4,7 +4,7 @@
"name": "Rick van Lieshout", "name": "Rick van Lieshout",
"email": "info@rickvanlieshout.com" "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.", "description": "A small, simple and customizable cookie consent bar for use in React applications.",
"main": "build/index.js", "main": "build/index.js",
"dependencies": { "dependencies": {

View File

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