- {['web'].map((channel) => (
+ {NOTIFICATION_CHANNELS.map((channel) => (
{
destination="https://edx.readthedocs.io/projects/open-edx-learner-guide/en/latest/sfd_notifications/managing_notifications.html"
target="_blank"
rel="noopener noreferrer"
- className="text-decoration-underline"
+ className="text-decoration-underline ml-1"
>
{intl.formatMessage(messages.notificationPreferenceGuideLink)}
@@ -83,15 +83,15 @@ const NotificationPreferences = () => {
{preferencesList}
{isLoading && (
-
-
-
+
+
+
)}
diff --git a/src/notification-preferences/data/constants.js b/src/notification-preferences/data/constants.js
new file mode 100644
index 000000000..d3e2e5cf1
--- /dev/null
+++ b/src/notification-preferences/data/constants.js
@@ -0,0 +1,3 @@
+const NOTIFICATION_CHANNELS = ['web'];
+
+export default NOTIFICATION_CHANNELS;
diff --git a/src/notification-preferences/messages.js b/src/notification-preferences/messages.js
index 62b9f67d5..91780fbb6 100644
--- a/src/notification-preferences/messages.js
+++ b/src/notification-preferences/messages.js
@@ -1,7 +1,6 @@
import { defineMessages } from '@edx/frontend-platform/i18n';
-// eslint-disable-next-line import/prefer-default-export
-export const messages = defineMessages({
+const messages = defineMessages({
notificationHeading: {
id: 'notification.preference.heading',
defaultMessage: 'Notifications',
@@ -10,21 +9,21 @@ export const messages = defineMessages({
notificationAppTitle: {
id: 'notification.preference.app.title',
defaultMessage: `{
- key, select,
- discussion {Discussions}
- coursework {Course Work}
- other {{key}}
+ key, select,
+ discussion {Discussions}
+ coursework {Course Work}
+ other {{key}}
}`,
description: 'Display text for Notification Types',
},
notificationTitle: {
id: 'notification.preference.title',
defaultMessage: `{
- text, select,
- core {Core notifications}
- newDiscussionPost {New discussion posts}
- newQuestionPost {New question posts}
- other {{text}}
+ text, select,
+ core {Core notifications}
+ newDiscussionPost {New discussion posts}
+ newQuestionPost {New question posts}
+ other {{text}}
}`,
description: 'Display text for Notification Types',
},
@@ -34,7 +33,7 @@ export const messages = defineMessages({
description: 'Display text for type',
},
webLabel: {
- id: 'notification.preference.web,label',
+ id: 'notification.preference.web.label',
defaultMessage: 'Web',
description: 'Display text for web',
},
@@ -60,7 +59,9 @@ export const messages = defineMessages({
},
notificationPreferenceGuideBody: {
id: 'notification.preference.guide.body',
- defaultMessage: 'Notifications for certain activities are enabled by default, ',
+ defaultMessage: 'Notifications for certain activities are enabled by default,',
description: 'Body of the notification preferences for learner guide',
},
});
+
+export default messages;