diff --git a/.env b/.env index 402b896..862afa2 100644 --- a/.env +++ b/.env @@ -31,6 +31,10 @@ MARKETING_EMAILS_OPT_IN='' APP_ID= MFE_CONFIG_API_URL= PASSWORD_RESET_SUPPORT_LINK='' +SUPPORT_URL_TO_UNLINK_SOCIAL_MEDIA_ACCOUNT='' +ACCOUNT_BASICS_SUPPORT_URL='' +EMAIL_CONFIRMATION_SUPPORT_URL='' +CERTIFICATES_SUPPORT_URL='' +LEARNER_SUPPORT_URL='' LEARNER_FEEDBACK_URL='' -SUPPORT_URL_TO_UNLINK_SOCIAL_MEDIA_ACCOUNT='https://help.edx.org/edxlearner/s/article/How-do-I-link-or-unlink-my-edX-account-to-a-social-media-account' COUNTRIES_WITH_DELETE_ACCOUNT_DISABLED='[]' diff --git a/.env.development b/.env.development index 7abc30d..b84f0a3 100644 --- a/.env.development +++ b/.env.development @@ -33,5 +33,9 @@ APP_ID= MFE_CONFIG_API_URL= PASSWORD_RESET_SUPPORT_LINK='mailto:support@example.com' LEARNER_FEEDBACK_URL='' -SUPPORT_URL_TO_UNLINK_SOCIAL_MEDIA_ACCOUNT='https://help.edx.org/edxlearner/s/article/How-do-I-link-or-unlink-my-edX-account-to-a-social-media-account' +SUPPORT_URL_TO_UNLINK_SOCIAL_MEDIA_ACCOUNT='' +ACCOUNT_BASICS_SUPPORT_URL='' +EMAIL_CONFIRMATION_SUPPORT_URL='' +CERTIFICATES_SUPPORT_URL='' +LEARNER_SUPPORT_URL='' COUNTRIES_WITH_DELETE_ACCOUNT_DISABLED='[]' diff --git a/src/account-settings/delete-account/DeleteAccount.jsx b/src/account-settings/delete-account/DeleteAccount.jsx index 51d3fc7..3984ac0 100644 --- a/src/account-settings/delete-account/DeleteAccount.jsx +++ b/src/account-settings/delete-account/DeleteAccount.jsx @@ -59,7 +59,7 @@ export class DeleteAccount extends React.Component { hasLinkedTPA, isVerifiedAccount, status, errorType, intl, } = this.props; const canDelete = isVerifiedAccount && !hasLinkedTPA; - const supportArticleUrl = process.env.SUPPORT_URL_TO_UNLINK_SOCIAL_MEDIA_ACCOUNT; + const supportArticleUrl = getConfig().SUPPORT_URL_TO_UNLINK_SOCIAL_MEDIA_ACCOUNT; // TODO: We lack a good way of providing custom language for a particular site. This is a hack // to allow edx.org to fulfill its business requirements. @@ -102,7 +102,7 @@ export class DeleteAccount extends React.Component { )}
-
Want to change your email, name, or password instead?
@@ -73,7 +72,6 @@ exports[`DeleteAccount should match unverified account section snapshot 1`] = `
Want to change your email, name, or password instead?
@@ -112,15 +110,7 @@ exports[`DeleteAccount should match unverified account section snapshot 1`] = `
Want to change your email, name, or password instead?
@@ -192,15 +181,7 @@ exports[`DeleteAccount should match unverified account section snapshot 2`] = `