updated package

This commit is contained in:
Rick van Lieshout 2019-04-13 22:40:12 +02:00
parent 72743353a0
commit 2b75d87daa
3 changed files with 1663 additions and 1738 deletions

3396
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"homepage": "https://mastermindzh.github.io/react-cookie-consent", "homepage": "https://mastermindzh.github.io/react-cookie-consent",
"dependencies": { "dependencies": {
"react": "^16.4.0", "react": "^16.4.0",
"react-cookie-consent": "^2.0.1", "react-cookie-consent": "^2.3.0",
"react-dom": "^16.4.0", "react-dom": "^16.4.0",
"react-scripts": "1.1.4" "react-scripts": "1.1.4"
}, },

View File

@ -25,6 +25,9 @@ class App extends Component {
<CookieConsent <CookieConsent
onAccept={() => {alert("yay!")}} onAccept={() => {alert("yay!")}}
debug={true} debug={true}
enableDeclineButton
declineButtonText="Decline (optional)"
onDecline={() => {alert("nay!")}}
> >
This website uses cookies to enhance the user experience.{" "} This website uses cookies to enhance the user experience.{" "}
<span style={{ fontSize: "10px" }}> <span style={{ fontSize: "10px" }}>