chore: Tidy up

This commit is contained in:
Bouncey
2018-11-08 15:05:43 +00:00
committed by mrugesh mohapatra
parent 602065be0b
commit d417ec9936
3 changed files with 15 additions and 16 deletions

View File

@ -155,17 +155,17 @@ function Profile({ user, isSessionUser }) {
website={website}
yearsTopContributor={yearsTopContributor}
/>
{showHeatMap ? <HeatMap calendar={calendar} streak={streak} /> : null}
{showCerts ? <Certifications username={username} /> : null}
{showPortfolio ? <Portfolio portfolio={portfolio} /> : null}
{showTimeLine ? (
<Timeline
className='timelime-container'
completedMap={completedChallenges}
username={username}
/>
) : null}
</Grid>
{showHeatMap ? <HeatMap calendar={calendar} streak={streak} /> : null}
{showCerts ? <Certifications username={username} /> : null}
{showPortfolio ? <Portfolio portfolio={portfolio} /> : null}
{showTimeLine ? (
<Timeline
className='timelime-container'
completedMap={completedChallenges}
username={username}
/>
) : null}
</Layout>
);
}

View File

@ -114,8 +114,8 @@ const propTypes = {
function renderCertShow(username, cert) {
return cert.show ? (
<Fragment>
<Row key={cert.showURL}>
<Fragment key={cert.title}>
<Row>
<Col sm={10} smPush={1}>
<Link to={`/certification/${username}/${cert.showURL}`}>
<Button
@ -147,7 +147,7 @@ function Certificates({
<h2 className='text-center'>freeCodeCamp Certifications</h2>
<br />
{hasModernCert ? (
currentCerts.map(renderCertShowWithUsername).filter(Boolean)
currentCerts.map(renderCertShowWithUsername)
) : (
<p className='text-center'>
No certifications have been earned under the current curriculum
@ -158,7 +158,7 @@ function Certificates({
<br />
<h3 className='text-center'>Legacy Certifications</h3>
<br />
{legacyCerts.map(renderCertShowWithUsername).filter(Boolean)}
{legacyCerts.map(renderCertShowWithUsername)}
<Spacer size={2} />
</div>
) : null}
@ -168,6 +168,6 @@ function Certificates({
}
Certificates.propTypes = propTypes;
Certificates.displayName = 'Certificates';
Certificates.displayName = 'Certifications';
export default connect(mapStateToProps)(Certificates);

View File

@ -60,7 +60,6 @@ function HeatMap({ calendar, streak }) {
if (!value) {
return 'colour-empty';
}
console.log(value);
if (value.count > 4) {
return 'colour-scale-a-lot';
}