From e8f754c10b66fffc99fd505ab031c2edea4156d3 Mon Sep 17 00:00:00 2001 From: Awais Ansari Date: Thu, 3 Aug 2023 18:01:13 +0500 Subject: [PATCH] style: update the notification preferences page style according to figma --- .../NotificationPreferenceApp.jsx | 10 +++++----- .../NotificationPreferenceRow.jsx | 15 ++++++++------- .../NotificationPreferences.jsx | 6 +++--- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/notification-preferences/NotificationPreferenceApp.jsx b/src/notification-preferences/NotificationPreferenceApp.jsx index 0b5d1e6..389ccf2 100644 --- a/src/notification-preferences/NotificationPreferenceApp.jsx +++ b/src/notification-preferences/NotificationPreferenceApp.jsx @@ -40,11 +40,11 @@ const NotificationPreferenceApp = ({ appId }) => { return ( -
- +
+ {intl.formatMessage(messages.notificationAppTitle, { key: appId })} - + { />
-
+
@@ -61,7 +61,7 @@ const NotificationPreferenceApp = ({ appId }) => { {intl.formatMessage(messages.webLabel)}
-
+
{ preferences }
diff --git a/src/notification-preferences/NotificationPreferenceRow.jsx b/src/notification-preferences/NotificationPreferenceRow.jsx index c76192c..e5f9055 100644 --- a/src/notification-preferences/NotificationPreferenceRow.jsx +++ b/src/notification-preferences/NotificationPreferenceRow.jsx @@ -38,8 +38,8 @@ const NotificationPreferenceRow = ({ appId, preferenceName }) => { const tooltipId = `${preferenceName}-tooltip`; return ( -
- +
+
{intl.formatMessage(messages.notificationTitle, { text: preferenceName })} {preference.info !== '' && ( { )} - - +
+
{['web'].map((channel) => ( - { onChange={onToggle} disabled={nonEditable.includes(channel)} /> - +
))} - +
); }; diff --git a/src/notification-preferences/NotificationPreferences.jsx b/src/notification-preferences/NotificationPreferences.jsx index 28b9f9d..c558fdc 100644 --- a/src/notification-preferences/NotificationPreferences.jsx +++ b/src/notification-preferences/NotificationPreferences.jsx @@ -61,11 +61,11 @@ const NotificationPreferences = () => { {intl.formatMessage(messages.notificationHeading)}
-
+
- + - + {course?.name}