no longer setting position when location is passed.

added property "setDeclineCookie" to indicate whether a cookie has to be set on decline.

fixes #45
fixes #46
This commit is contained in:
2019-08-12 18:38:25 +02:00
parent ce0d7e2b0c
commit 1c3a54bd89
5 changed files with 17 additions and 8 deletions

1
build/index.d.ts vendored
View File

@@ -17,6 +17,7 @@ export interface CookieConsentProps {
cookieName?: string;
cookieValue?: string | boolean | number;
declineCookieValue?: string | boolean | number;
setDeclineCookie?: PropTypes.bool;
debug?: boolean;
expires?: number;
containerClasses?: string;