Skip to content

Commit

Permalink
fix: remove email freq (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh authored Jan 15, 2024
1 parent a7da8b9 commit a2804af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 1 addition & 13 deletions src/config/constants.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/config/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit a2804af

Please sign in to comment.