From 27bfcede751e703c5f970d838dd659c74ad9db5c Mon Sep 17 00:00:00 2001 From: Nikolaev Tomov Date: Fri, 23 Apr 2021 11:14:13 +0100 Subject: [PATCH 1/3] Specify cookie path so it will be added to main path --- src/ts/components/banners/cookie-banner.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ts/components/banners/cookie-banner.tsx b/src/ts/components/banners/cookie-banner.tsx index 214792e6..7868aa51 100644 --- a/src/ts/components/banners/cookie-banner.tsx +++ b/src/ts/components/banners/cookie-banner.tsx @@ -46,6 +46,7 @@ const CookieBanner = (props: CookieBannerProps) => { const setCookie = () => { document.cookie = cookie.serialize('cookies-accepted', 'true', { maxAge: props.maxAge || A_YEAR_IN_SECONDS, + path: '/' }); setDismissed(true); }; From d63740662d1ac326c53b8294d5722f44514c8cf0 Mon Sep 17 00:00:00 2001 From: Nikolaev Tomov Date: Fri, 23 Apr 2021 11:47:04 +0100 Subject: [PATCH 2/3] Run prettier to format cookie banner file --- src/ts/components/banners/cookie-banner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/components/banners/cookie-banner.tsx b/src/ts/components/banners/cookie-banner.tsx index 7868aa51..d9256038 100644 --- a/src/ts/components/banners/cookie-banner.tsx +++ b/src/ts/components/banners/cookie-banner.tsx @@ -46,7 +46,7 @@ const CookieBanner = (props: CookieBannerProps) => { const setCookie = () => { document.cookie = cookie.serialize('cookies-accepted', 'true', { maxAge: props.maxAge || A_YEAR_IN_SECONDS, - path: '/' + path: '/', }); setDismissed(true); }; From 38b0300da6d5ec52f859d3b6cda31e688f4221f3 Mon Sep 17 00:00:00 2001 From: Nikolaev Tomov Date: Fri, 23 Apr 2021 12:12:16 +0100 Subject: [PATCH 3/3] 0.13.2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d6cbc9f1..cc0620ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dabapps/roe", - "version": "0.13.1", + "version": "0.13.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dabapps/roe", - "version": "0.13.1", + "version": "0.13.2", "license": "BSD-3-Clause", "dependencies": { "@juggle/resize-observer": "^3.2.0", diff --git a/package.json b/package.json index bedd6085..fdd679d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dabapps/roe", - "version": "0.13.1", + "version": "0.13.2", "description": "A collection of React components, styles, mixins, and atomic CSS classes to aid with the development of web applications.", "main": "dist/js/index.js", "types": "dist/js/index.d.ts",