From ab7789535a5831c835475d0ad536c9c6e623a281 Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Fri, 9 Aug 2024 08:40:45 -0400 Subject: [PATCH] Change cookie name and default expire time --- src/components/UserSettings/tests/UserSettings.test.tsx | 1 - src/cookies/useCookieConsent.tsx | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/UserSettings/tests/UserSettings.test.tsx b/src/components/UserSettings/tests/UserSettings.test.tsx index 941f3170fb..079b792a4c 100644 --- a/src/components/UserSettings/tests/UserSettings.test.tsx +++ b/src/components/UserSettings/tests/UserSettings.test.tsx @@ -9,7 +9,6 @@ import UserSettingsGetUser, { UserSettingsIds, } from "components/UserSettings/UserSettings"; import { newUser } from "types/user"; -import { useAppSelector } from "rootRedux/hooks"; const mockGetAvatar = jest.fn(); const mockGetCurrentUser = jest.fn(); diff --git a/src/cookies/useCookieConsent.tsx b/src/cookies/useCookieConsent.tsx index c4ee83a6c8..c8ea39b429 100644 --- a/src/cookies/useCookieConsent.tsx +++ b/src/cookies/useCookieConsent.tsx @@ -21,6 +21,10 @@ export default function useCookieConsent(): void { /* Use defaults */ }, }, + cookie: { + expiresAfterDays: 365, + name: "cookie_consent", + }, guiOptions: { consentModal: { layout: "bar inline" }, },