From 10774e0553b3662994d37103c815a48b6d613367 Mon Sep 17 00:00:00 2001 From: Kiril Kartunov Date: Fri, 8 May 2020 10:48:10 +0300 Subject: [PATCH] Revert "Implement #4165" This reverts commit 2e2a0edc8290ee8486ac4423f4a89fa00f4f4c78. --- .../Settings/Preferences/Email/index.jsx | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/src/shared/components/Settings/Preferences/Email/index.jsx b/src/shared/components/Settings/Preferences/Email/index.jsx index cbe54d4f12..b8eae9fa7b 100644 --- a/src/shared/components/Settings/Preferences/Email/index.jsx +++ b/src/shared/components/Settings/Preferences/Email/index.jsx @@ -1,23 +1,15 @@ /** * Email Preferences component. */ -import { debounce, isEqual, map } from 'lodash'; +import { debounce, isEqual } from 'lodash'; import React from 'react'; import PT from 'prop-types'; import ConsentComponent from 'components/Settings/ConsentComponent'; -import ToggleableItem from 'components/Settings/ToggleableItem'; import './styles.scss'; const SAVE_DELAY = 1000; -const newsletters = [ - { - id: 'TOPCODER_NL_GEN', - name: 'General Newsletter', - desc: 'News summary from Topcoder', - }, -]; export default class EmailPreferences extends ConsentComponent { saveEmailPreferences = debounce(() => { @@ -85,33 +77,11 @@ export default class EmailPreferences extends ConsentComponent { } render() { - const { profileState: { emailPreferences } } = this.props; return (

E-Mail Preferences

-
- { - this.shouldRenderConsent() && this.renderConsent() - } - { - map(newsletters, (newsletter) => { - const checked = emailPreferences ? emailPreferences[newsletter.id] : false; - return ( - this.onHandleChange(newsletter.id, e.target.checked)} - /> - ); - }) - } -
); }