Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove email freq enum #948

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading