+ {!mobileView &&
{intl.formatMessage(messages.typeLabel)}}
+ {preferences.map(preference => (
+ <>
+
+ {intl.formatMessage(messages.notificationTitle, { text: preference.id })}
+ {preference.info !== '' && (
+
+ {preference.info}
+
+ )}
+ >
+
+
+
+
+ )}
+
+ {mobileView && (
+
+ {Object.values(NOTIFICATION_CHANNELS).map((channel) => (
+
+ ))}
+
+ )}
+ >
+ ))}
+
+ );
+};
+
+NotificationTypes.propTypes = {
+ appId: PropTypes.string.isRequired,
+};
+
+export default React.memo(NotificationTypes);
diff --git a/src/notification-preferences/ToggleSwitch.jsx b/src/notification-preferences/ToggleSwitch.jsx
index 91c2c995d..7e6fc28a2 100644
--- a/src/notification-preferences/ToggleSwitch.jsx
+++ b/src/notification-preferences/ToggleSwitch.jsx
@@ -8,6 +8,7 @@ const ToggleSwitch = ({
disabled,
onChange,
id,
+ className,
}) => (