+ {intl.formatMessage(messages.notificationHeading)} +
++
From 192714629c2242f86b16aba662f1fcd4aebf0a97 Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Mon, 22 May 2023 06:17:51 +0500 Subject: [PATCH] feat: added notification preference ui (#784) --- src/account-settings/AccountSettingsPage.jsx | 4 +- .../AccountSettingsPage.messages.jsx | 5 + src/account-settings/JumpNav.jsx | 23 +++- .../test/__snapshots__/JumpNav.test.jsx.snap | 4 +- src/data/reducers.js | 2 + src/index.jsx | 9 ++ src/index.scss | 24 ++++ .../NotificationCourses.jsx | 65 ++++++++++ .../NotificationPreferenceGroup.jsx | 74 +++++++++++ .../NotificationPreferenceRow.jsx | 51 ++++++++ .../NotificationPreferences.jsx | 78 ++++++++++++ src/notification-preferences/ToggleSwitch.jsx | 18 +++ src/notification-preferences/data/actions.js | 58 +++++++++ src/notification-preferences/data/reducers.js | 119 ++++++++++++++++++ .../data/selectors.js | 41 ++++++ src/notification-preferences/data/service.js | 46 +++++++ src/notification-preferences/data/thunks.js | 60 +++++++++ src/notification-preferences/messages.js | 52 ++++++++ 18 files changed, 727 insertions(+), 6 deletions(-) create mode 100644 src/notification-preferences/NotificationCourses.jsx create mode 100644 src/notification-preferences/NotificationPreferenceGroup.jsx create mode 100644 src/notification-preferences/NotificationPreferenceRow.jsx create mode 100644 src/notification-preferences/NotificationPreferences.jsx create mode 100644 src/notification-preferences/ToggleSwitch.jsx create mode 100644 src/notification-preferences/data/actions.js create mode 100644 src/notification-preferences/data/reducers.js create mode 100644 src/notification-preferences/data/selectors.js create mode 100644 src/notification-preferences/data/service.js create mode 100644 src/notification-preferences/data/thunks.js create mode 100644 src/notification-preferences/messages.js diff --git a/src/account-settings/AccountSettingsPage.jsx b/src/account-settings/AccountSettingsPage.jsx index c3f3c32..28cb41d 100644 --- a/src/account-settings/AccountSettingsPage.jsx +++ b/src/account-settings/AccountSettingsPage.jsx @@ -819,12 +819,12 @@ class AccountSettingsPage extends React.Component {