Skip to content

Commit d20dbb5

Browse files
committed
Removes Mailchimp email subscription preferences pending Hubspot integration
1 parent f8cc42c commit d20dbb5

File tree

2 files changed

+4
-69
lines changed

2 files changed

+4
-69
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ You will need to add the following line to your hosts file. The hosts file is no
143143
144144
3. Go to https://local.topcoder-dev.com
145145

146-
>**NOTE**: The site must run on port 443 in order for auth0 to work and for the site to load properly. Mac users will need to run the app with elevated permissions.
146+
>**NOTE**: The site must run on port 443 in order for auth0 to work and for the site to load properly. Mac users will need to run the app with elevated permissions, as in:
147+
148+
>% sudo yarn start
147149
148150
Run following command to allow node to run apps on ports lowert than 500:
149151

src/apps/accounts/src/settings/tabs/preferences/PreferencesTab.tsx

Lines changed: 1 addition & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -53,75 +53,8 @@ const PreferencesTab: FC<PreferencesTabProps> = (props: PreferencesTabProps) =>
5353
return (
5454
<div className={styles.container}>
5555
<h3>PLATFORM PREFERENCES</h3>
56-
56+
5757
<div className={styles.content}>
58-
{
59-
!!emailPreferences ? (
60-
<>
61-
<SettingSection
62-
leftElement={(
63-
<div className={styles.imageWrap}>
64-
<EmailIcon />
65-
</div>
66-
)}
67-
title={
68-
emailPreferences.status === 'subscribed'
69-
? 'You Are Currently Subscribed To Receive Topcoder Emails'
70-
: 'You Are Not Subscribed To Receive Topcoder Emails'
71-
}
72-
// eslint-disable-next-line max-len
73-
infoText={
74-
emailPreferences.status === 'subscribed'
75-
? 'If this was a mistake or if you would like to unsubscribe, please click the “Unsubscribe” button.'
76-
: 'If you would like to subscribe to receive Topcoder emails, please click the “Subscribe” button.'
77-
}
78-
actionElement={(
79-
<div className={styles.subAction}>
80-
<form action={mailChimpFormAction} method='post' id='mc-embedded-subscribe-form' name='mc-embedded-subscribe-form' noValidate>
81-
<input type='email' value={props.profile.email} readOnly name='EMAIL' id='mce-EMAIL' />
82-
<input type='checkbox' id='gdpr_11101' name='gdpr[11101]' value='Y' readOnly />
83-
<input type='text' name='b_65bd5a1857b73643aad556093_28bfd3c062' value='' readOnly />
84-
<Button
85-
label={emailPreferences.status === 'subscribed' ? 'Unsubscribe' : 'Subscribe'}
86-
secondary
87-
size='lg'
88-
onClick={handleSubscribtionStatusChange}
89-
type='submit'
90-
/>
91-
</form>
92-
</div>
93-
)}
94-
/>
95-
96-
{
97-
emailPreferences.status === 'subscribed' && (
98-
<>
99-
{
100-
newsletters.concat(programs)
101-
.map(preference => (
102-
<SettingSection
103-
key={preference.id}
104-
title={preference.name}
105-
infoText={preference.desc}
106-
actionElement={(
107-
<FormToggleSwitch
108-
name={preference.id}
109-
onChange={bind(handleUserEmailPreferencesChange, this, preference.id)}
110-
value={emailPreferences.interests[preference.id]}
111-
/>
112-
)}
113-
/>
114-
))
115-
}
116-
</>
117-
)
118-
}
119-
</>
120-
) : (
121-
<LoadingSpinner hide={!!emailPreferences} overlay />
122-
)
123-
}
124-
12558
<SettingSection
12659
leftElement={(
12760
<div className={styles.imageWrap}>

0 commit comments

Comments
 (0)