Open MKlblangenois opened 4 years ago
I'm sorry, not now. We are working for this new feature.
any idea, when it will be available?
Since the banner is hidden when the user gives preferences, it's necessary a button or something else to show the banner again. I want to give users the ability to customize the graphic style of a button and need more work.
For now you need to create a wrapper component that remove the rcl_consent_given
cookie and render CookieBanner
. Like this:
const removeCookie = (cookieName) => {
// Remove "rcl_consent_given" and render component
}
render () {
<div>
<button onClick={removeCookie}>Modify preferences</button>
<CookieBanner />
</div>
}
Is there a way to update our preference about cookie once the user has click on accept on decline ?