Skip to content

Commit

Permalink
feat: added data sharing consent link on ee course enrollment page
Browse files Browse the repository at this point in the history
  • Loading branch information
Maham Akif authored and Maham Akif committed Jun 13, 2024
1 parent b533813 commit 6d10e81
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ GETSMARTER_LEARNER_DASHBOARD_URL='https://www.getsmarter.com/account'
FEATURE_CONTENT_HIGHLIGHTS='true'
FEATURE_ENABLE_EMET_REDEMPTION='true'
FEATURE_ENABLE_TOP_DOWN_ASSIGNMENT='true'
GETSMARTER_STUDENT_DATA_SHARING_URL='https://www.getsmarter.com/privacy-policy'
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ module.exports = createConfig('jest', {
setupFiles: [
'<rootDir>/src/setupTest.js',
],
coveragePathIgnorePatterns: ['src/index.jsx'],
});
13 changes: 12 additions & 1 deletion src/components/executive-education-2u/UserEnrollmentForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,19 @@ const UserEnrollmentForm = ({ className }) => {
<span aria-hidden>
<FormattedMessage
id="executive.education.external.course.enrollment.page.data.sharing.consent.label"
defaultMessage="I have read and accepted GetSmarter's data sharing consent."
defaultMessage="I have read and accepted GetSmarter's <a>data sharing consent</a>"
description="Data sharing consent label for the executive education course enrollment page. And here GetSmarter is brand name"
values={{
// eslint-disable-next-line react/no-unstable-nested-components
a: (chunks) => (
<Hyperlink
destination={config.GETSMARTER_STUDENT_DATA_SHARING_URL}
target="_blank"
>
{chunks}
</Hyperlink>
),
}}
/>
</span>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ initialize({
EXPERIMENT_2_VARIANT_2_ID: process.env.EXPERIMENT_2_VARIANT_2_ID || null,
PREQUERY_SEARCH_EXPERIMENT_ID: process.env.PREQUERY_SEARCH_EXPERIMENT_ID || null,
PREQUERY_SEARCH_EXPERIMENT_VARIANT_ID: process.env.PREQUERY_SEARCH_EXPERIMENT_VARIANT_ID || null,
GETSMARTER_STUDENT_DATA_SHARING_URL: process.env.GETSMARTER_STUDENT_DATA_SHARING_URL || null,
});
},
},
Expand Down

0 comments on commit 6d10e81

Please sign in to comment.