diff --git a/src/index.scss b/src/index.scss index 9e590df..b8b07d1 100755 --- a/src/index.scss +++ b/src/index.scss @@ -69,20 +69,26 @@ $fa-font-path: "~font-awesome/fonts"; font-size: 32px; } -.notification-course-title { - line-height: 28px; - font-weight: 700; - font-size: 18px; -} - .px-2\.25 { padding-left: 0.625rem; } -.notification-help-text { - font-size: 14px; - font-weight: 400; - line-height: 28px; - height: 28px; - color: #707070; +.notification-preferences { + input[type="checkbox"] { + margin-right: 0; + } + + .header-label { + font-size: 14px; + font-weight: 400; + line-height: 28px; + height: 28px; + color: #707070; + } + + .notification-course-title { + line-height: 28px; + font-weight: 700; + font-size: 18px; + } } diff --git a/src/notification-preferences/NotificationPreferenceApp.jsx b/src/notification-preferences/NotificationPreferenceApp.jsx index bd106c6..0b5d1e6 100644 --- a/src/notification-preferences/NotificationPreferenceApp.jsx +++ b/src/notification-preferences/NotificationPreferenceApp.jsx @@ -55,12 +55,10 @@ const NotificationPreferenceApp = ({ appId }) => {
-
- {intl.formatMessage(messages.notificationHelpType)} +
+ {intl.formatMessage(messages.typeLabel)} - {intl.formatMessage(messages.notificationHelpWeb)} - {intl.formatMessage(messages.notificationHelpEmail)} - {intl.formatMessage(messages.notificationHelpPush)} + {intl.formatMessage(messages.webLabel)}
diff --git a/src/notification-preferences/NotificationPreferenceRow.jsx b/src/notification-preferences/NotificationPreferenceRow.jsx index 4276623..c76192c 100644 --- a/src/notification-preferences/NotificationPreferenceRow.jsx +++ b/src/notification-preferences/NotificationPreferenceRow.jsx @@ -41,45 +41,41 @@ const NotificationPreferenceRow = ({ appId, preferenceName }) => {
{intl.formatMessage(messages.notificationTitle, { text: preferenceName })} - { - preference.info !== '' && ( - - {preference.info} - - )} - > - - - - - ) - } + {preference.info !== '' && ( + + {preference.info} + + )} + > + + + + + )} - { - ['web', 'email', 'push'].map((channel) => ( - - - - )) - } + {['web'].map((channel) => ( + + + + ))}
); diff --git a/src/notification-preferences/NotificationPreferences.jsx b/src/notification-preferences/NotificationPreferences.jsx index b388de8..28b9f9d 100644 --- a/src/notification-preferences/NotificationPreferences.jsx +++ b/src/notification-preferences/NotificationPreferences.jsx @@ -56,14 +56,14 @@ const NotificationPreferences = () => { } return ( - +

{intl.formatMessage(messages.notificationHeading)}

- + {course?.name} diff --git a/src/notification-preferences/messages.js b/src/notification-preferences/messages.js index e12ac5a..963a056 100644 --- a/src/notification-preferences/messages.js +++ b/src/notification-preferences/messages.js @@ -33,13 +33,13 @@ export const messages = defineMessages({ }`, description: 'Display text for Notification Types', }, - notificationHelpType: { - id: 'notification.preference.help.type', + typeLabel: { + id: 'notification.preference.type.label', defaultMessage: 'Type', description: 'Display text for type', }, - notificationHelpWeb: { - id: 'notification.preference.help.web', + webLabel: { + id: 'notification.preference.web,label', defaultMessage: 'Web', description: 'Display text for web', },