diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json index 5f5ef438308..15bd0852f00 100644 --- a/client/i18n/locales/english/translations.json +++ b/client/i18n/locales/english/translations.json @@ -554,14 +554,5 @@ "Neural Network SMS Text Classifier": "Neural Network SMS Text Classifier" } } - }, - "certification-card": { - "title": "Steps to Claim Your Certification", - "intro": "Complete the following steps to claim and view your {{i18nCertText}}", - "complete-project": "Complete {{i18nCertText}} Projects", - "accept-honesty": "Accept our Academic Honesty Policy", - "set-name": "Set your name, and make it public", - "set-certs-public": "Set your certificication settings to public", - "set-profile-public": "Set your profile settings to public" } } diff --git a/client/src/components/settings/Honesty.js b/client/src/components/settings/Honesty.js index 90ddd2c33f6..2ff6948629d 100644 --- a/client/src/components/settings/Honesty.js +++ b/client/src/components/settings/Honesty.js @@ -35,7 +35,7 @@ const Honesty = ({ isHonest, updateIsHonest }) => { ); return ( -
+
{t('settings.headings.honesty')} diff --git a/client/src/components/settings/Privacy.js b/client/src/components/settings/Privacy.js index 0e342439753..b0f1d745c20 100644 --- a/client/src/components/settings/Privacy.js +++ b/client/src/components/settings/Privacy.js @@ -66,7 +66,7 @@ class PrivacySettings extends Component { } = user.profileUI; return ( -
+
{t('settings.headings.privacy')}

{t('settings.privacy')}

diff --git a/client/src/components/settings/__snapshots__/Honesty.test.js.snap b/client/src/components/settings/__snapshots__/Honesty.test.js.snap index 9e6d5accbde..c88fda569d4 100644 --- a/client/src/components/settings/__snapshots__/Honesty.test.js.snap +++ b/client/src/components/settings/__snapshots__/Honesty.test.js.snap @@ -3,7 +3,6 @@ exports[` snapshot when isHonest is false: Honesty 1`] = `
settings.headings.honesty @@ -32,7 +31,6 @@ exports[` snapshot when isHonest is false: Honesty 1`] = exports[` snapshot when isHonest is true: HonestyAccepted 1`] = `
settings.headings.honesty diff --git a/client/src/templates/Introduction/components/CertChallenge.js b/client/src/templates/Introduction/components/CertChallenge.js index 7de9812419d..06399bffd0f 100644 --- a/client/src/templates/Introduction/components/CertChallenge.js +++ b/client/src/templates/Introduction/components/CertChallenge.js @@ -15,7 +15,6 @@ import { certSlugTypeMap, superBlockCertTypeMap } from '../../../../../config/certification-settings'; -import CertificationCard from './CertificationCard'; const propTypes = { currentCerts: CurrentCertsType, @@ -58,10 +57,6 @@ export class CertChallenge extends Component { return (
- - {isExpanded && ( - - )} -
- - ); -}; - -CertificationCard.displayName = 'CertStatus'; -CertificationCard.propTypes = propTypes; - -export default CertificationCard; diff --git a/client/src/templates/Introduction/components/ClaimCertSteps.js b/client/src/templates/Introduction/components/ClaimCertSteps.js deleted file mode 100644 index 50ed1bc58dc..00000000000 --- a/client/src/templates/Introduction/components/ClaimCertSteps.js +++ /dev/null @@ -1,51 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import { Link } from 'gatsby'; -import { withTranslation, useTranslation } from 'react-i18next'; - -const propTypes = { - i18nCertText: PropTypes.string, - superBlock: PropTypes.string -}; - -const ClaimCertSteps = ({ i18nCertText, superBlock }) => { - const { t } = useTranslation(); - - const settingsLink = '/settings#privacy-settings'; - const honestyPolicyAnchor = '/settings#honesty-policy'; - - return ( - - ); -}; - -ClaimCertSteps.displayName = 'ClaimCertSteps'; -ClaimCertSteps.propTypes = propTypes; - -export default withTranslation()(ClaimCertSteps);