fix(client): quick-fix for cert claiming (#42055)

* chore: reinstate the quick-fix for cert claiming

This reverts commit d80d093c8b.

* feat: add progress to claim cert card
This commit is contained in:
Mrugesh Mohapatra
2021-05-08 01:09:42 +05:30
committed by GitHub
parent 5e8a64e62c
commit 7c4676d0a4
10 changed files with 200 additions and 4 deletions

View File

@@ -260,10 +260,13 @@ export class CertificationSettings extends Component {
renderCertifications = certName => {
const { t } = this.props;
const { certSlug } = first(projectMap[certName]);
return (
<FullWidthRow key={certName}>
<Spacer />
<h3 className='text-center'>{certName}</h3>
<h3 className='text-center' id={`cert-${certSlug}`}>
{certName}
</h3>
<Table>
<thead>
<tr>
@@ -448,7 +451,9 @@ export class CertificationSettings extends Component {
return (
<FullWidthRow key={certSlug}>
<Spacer />
<h3 className='text-center'>{certName}</h3>
<h3 className='text-center' id={`cert-${certSlug}`}>
{certName}
</h3>
<Form
buttonText={
fullForm ? t('buttons.claim-cert') : t('buttons.save-progress')

View File

@@ -35,7 +35,7 @@ const Honesty = ({ isHonest, updateIsHonest }) => {
</Button>
);
return (
<section className='honesty-policy'>
<section className='honesty-policy' id='honesty-policy'>
<SectionHeader>{t('settings.headings.honesty')}</SectionHeader>
<FullWidthRow>
<Panel className='honesty-panel'>

View File

@@ -66,7 +66,7 @@ class PrivacySettings extends Component {
} = user.profileUI;
return (
<div className='privacy-settings'>
<div className='privacy-settings' id='privacy-settings'>
<SectionHeader>{t('settings.headings.privacy')}</SectionHeader>
<FullWidthRow>
<p>{t('settings.privacy')}</p>

View File

@@ -3,6 +3,7 @@
exports[`<Honesty /> <Honesty /> snapshot when isHonest is false: Honesty 1`] = `
<section
className="honesty-policy"
id="honesty-policy"
>
<SectionHeader>
settings.headings.honesty
@@ -31,6 +32,7 @@ exports[`<Honesty /> <Honesty /> snapshot when isHonest is false: Honesty 1`] =
exports[`<Honesty /> <Honesty /> snapshot when isHonest is true: HonestyAccepted 1`] = `
<section
className="honesty-policy"
id="honesty-policy"
>
<SectionHeader>
settings.headings.honesty