From a2804af807deea4fa448e12eeff21c4d8ae37847 Mon Sep 17 00:00:00 2001 From: Basile Spaenlehauer Date: Mon, 15 Jan 2024 14:20:28 +0100 Subject: [PATCH] fix: remove email freq (#948) --- src/config/constants.ts | 14 +------------- src/config/selectors.ts | 2 -- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/config/constants.ts b/src/config/constants.ts index c7a1f620b..900103e8a 100644 --- a/src/config/constants.ts +++ b/src/config/constants.ts @@ -1,9 +1,4 @@ -import { - EmailFrequency, - ItemLoginSchemaType, - ItemType, - PermissionLevel, -} from '@graasp/sdk'; +import { ItemLoginSchemaType, ItemType, PermissionLevel } from '@graasp/sdk'; import ITEM_LAYOUT_MODES from '../enums/itemLayoutModes'; @@ -22,13 +17,6 @@ export const DEFAULT_LOCALE = 'en-US'; export const DEFAULT_LANG = 'en'; export const DEFAULT_EMAIL_FREQUENCY = 'always'; -export const emailFrequency = { - [EmailFrequency.Always]: 'Always receive email notifications', - // todo: schedule a digest of the notifications - // daily: 'Receive email notifications once per day', - [EmailFrequency.Never]: 'Disable email notifications', -}; - export const DEFAULT_SHOW_CHATBOX_SETTING = false; export const DEFAULT_PINNED_SETTING = false; export const DEFAULT_COLLAPSIBLE_SETTING = false; diff --git a/src/config/selectors.ts b/src/config/selectors.ts index 03c13928f..b3a4b54dc 100644 --- a/src/config/selectors.ts +++ b/src/config/selectors.ts @@ -291,8 +291,6 @@ export const buildCategorySelectionOptionId = ( export const LIBRARY_SETTINGS_CATEGORIES_ID = 'librarySettingsCategories'; export const buildLanguageOptionId = (value: string): string => `languageOption-${value}`; -export const buildEmailFrequencyOptionId = (value: string): string => - `emailFrequencyOption-${value}`; export const CC_ALLOW_COMMERCIAL_CONTROL_ID = 'allowCommercialCCSelector'; export const CC_DISALLOW_COMMERCIAL_CONTROL_ID = 'disallowCommercialCCSelector';