chore: Tidy up
This commit is contained in:
committed by
mrugesh mohapatra
parent
602065be0b
commit
d417ec9936
@ -155,17 +155,17 @@ function Profile({ user, isSessionUser }) {
|
|||||||
website={website}
|
website={website}
|
||||||
yearsTopContributor={yearsTopContributor}
|
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>
|
</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>
|
</Layout>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -114,8 +114,8 @@ const propTypes = {
|
|||||||
|
|
||||||
function renderCertShow(username, cert) {
|
function renderCertShow(username, cert) {
|
||||||
return cert.show ? (
|
return cert.show ? (
|
||||||
<Fragment>
|
<Fragment key={cert.title}>
|
||||||
<Row key={cert.showURL}>
|
<Row>
|
||||||
<Col sm={10} smPush={1}>
|
<Col sm={10} smPush={1}>
|
||||||
<Link to={`/certification/${username}/${cert.showURL}`}>
|
<Link to={`/certification/${username}/${cert.showURL}`}>
|
||||||
<Button
|
<Button
|
||||||
@ -147,7 +147,7 @@ function Certificates({
|
|||||||
<h2 className='text-center'>freeCodeCamp Certifications</h2>
|
<h2 className='text-center'>freeCodeCamp Certifications</h2>
|
||||||
<br />
|
<br />
|
||||||
{hasModernCert ? (
|
{hasModernCert ? (
|
||||||
currentCerts.map(renderCertShowWithUsername).filter(Boolean)
|
currentCerts.map(renderCertShowWithUsername)
|
||||||
) : (
|
) : (
|
||||||
<p className='text-center'>
|
<p className='text-center'>
|
||||||
No certifications have been earned under the current curriculum
|
No certifications have been earned under the current curriculum
|
||||||
@ -158,7 +158,7 @@ function Certificates({
|
|||||||
<br />
|
<br />
|
||||||
<h3 className='text-center'>Legacy Certifications</h3>
|
<h3 className='text-center'>Legacy Certifications</h3>
|
||||||
<br />
|
<br />
|
||||||
{legacyCerts.map(renderCertShowWithUsername).filter(Boolean)}
|
{legacyCerts.map(renderCertShowWithUsername)}
|
||||||
<Spacer size={2} />
|
<Spacer size={2} />
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
@ -168,6 +168,6 @@ function Certificates({
|
|||||||
}
|
}
|
||||||
|
|
||||||
Certificates.propTypes = propTypes;
|
Certificates.propTypes = propTypes;
|
||||||
Certificates.displayName = 'Certificates';
|
Certificates.displayName = 'Certifications';
|
||||||
|
|
||||||
export default connect(mapStateToProps)(Certificates);
|
export default connect(mapStateToProps)(Certificates);
|
||||||
|
@ -60,7 +60,6 @@ function HeatMap({ calendar, streak }) {
|
|||||||
if (!value) {
|
if (!value) {
|
||||||
return 'colour-empty';
|
return 'colour-empty';
|
||||||
}
|
}
|
||||||
console.log(value);
|
|
||||||
if (value.count > 4) {
|
if (value.count > 4) {
|
||||||
return 'colour-scale-a-lot';
|
return 'colour-scale-a-lot';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user