From be5470959830433f44e0858955f112254f144101 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 6 Dec 2024 14:34:17 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(frontend)=20create=20STORAGE=5FKEYS?= =?UTF-8?q?=20constant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add STORAGE_KEYS object to centralize localStorage keys, ensuring no key overlaps by maintaining a single source of truth for key declarations across the app. Might be premature, as only the notification store will be persisted. --- src/frontend/src/utils/storageKeys.tsx | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/frontend/src/utils/storageKeys.tsx diff --git a/src/frontend/src/utils/storageKeys.tsx b/src/frontend/src/utils/storageKeys.tsx new file mode 100644 index 00000000..430698c9 --- /dev/null +++ b/src/frontend/src/utils/storageKeys.tsx @@ -0,0 +1,6 @@ +/** + * Object containing all localStorage keys used across the app + */ +export const STORAGE_KEYS = { + NOTIFICATIONS: 'app_notification_settings', +} as const