mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-05-10 07:13:47 +02:00
updated the example :)
This commit is contained in:
parent
a06d5c967c
commit
e4d6a8eb7b
6
package-lock.json
generated
6
package-lock.json
generated
@ -8830,9 +8830,9 @@
|
||||
}
|
||||
},
|
||||
"react-cookie-consent": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/react-cookie-consent/-/react-cookie-consent-1.1.1.tgz",
|
||||
"integrity": "sha512-if/MPvGZg7tBL9vy9+h5LZh4s8hEA7/dBM+By+CzrujGsjiBgJS9G8k4NH/9SQjzoIp5dsEKY3fLc5FlDXQArg==",
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/react-cookie-consent/-/react-cookie-consent-1.1.2.tgz",
|
||||
"integrity": "sha512-ntEW3y+0q9xXx9yebc92sS97MCnscnJpG6dML2/IKRt2iKgt1a50H5Xy72bwQQ970qAMLN+3D3w0ogcVFLkpPg==",
|
||||
"requires": {
|
||||
"js-cookie": "^2.2.0",
|
||||
"react": "^16.4.0"
|
||||
|
@ -5,7 +5,7 @@
|
||||
"homepage": "https://mastermindzh.github.io/react-cookie-consent",
|
||||
"dependencies": {
|
||||
"react": "^16.4.0",
|
||||
"react-cookie-consent": "^1.1.1",
|
||||
"react-cookie-consent": "^1.1.2",
|
||||
"react-dom": "^16.4.0",
|
||||
"react-scripts": "1.1.4"
|
||||
},
|
||||
|
@ -18,8 +18,13 @@ class App extends Component {
|
||||
<p className="App-intro">
|
||||
To get started, edit <code>src/App.js</code> and save to reload.
|
||||
</p>
|
||||
<p>
|
||||
<strong>Note:</strong> by default the bar will come back even with a cookie set, remove "debug={true}" in App.js to enable the real bar behavior.
|
||||
</p>
|
||||
|
||||
<CookieConsent
|
||||
onAccept={() => {alert("yay!")}}
|
||||
debug={true}
|
||||
>
|
||||
This website uses cookies to enhance the user experience.{" "}
|
||||
<span style={{ fontSize: "10px" }}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user