Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions src/app/components/elements/panels/UserEmailPreferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export const UserEmailPreference = ({
const userIsStudent = isStudent({ ...user, loggedIn: true });
const isaacEmailPreferenceDescriptions = {
assignments: "Receive assignment notifications from your teacher.",
news: "Be the first to know about new topics, new platform features, and our fantastic competition giveaways.",
events: "Get valuable updates on our free student workshops happening near you.",
newsAndUpdates: "Be the first to know about new topics, platform features, competitons and free student events.",
};

let errorMessage = null;
Expand Down Expand Up @@ -86,8 +85,8 @@ export const UserEmailPreference = ({
</tr>
)}
<tr>
<td>News</td>
<td className="d-none d-sm-table-cell">{isaacEmailPreferenceDescriptions.news}</td>
<td>News and Updates</td>
<td className="d-none d-sm-table-cell">{isaacEmailPreferenceDescriptions.newsAndUpdates}</td>
<td className="text-center">
<TrueFalseRadioInput
id={`${idPrefix}news`}
Expand All @@ -98,19 +97,6 @@ export const UserEmailPreference = ({
/>
</td>
</tr>
<tr>
<td>Events</td>
<td className="d-none d-sm-table-cell">{isaacEmailPreferenceDescriptions.events}</td>
<td className="text-center">
<TrueFalseRadioInput
id={`${idPrefix}events`}
stateObject={emailPreferences}
propertyName="EVENTS"
setStateFunction={setEmailPreferences}
submissionAttempted={submissionAttempted}
/>
</td>
</tr>
</tbody>
</Table>
<hr />
Expand Down
Loading