Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 12e4bcf

Browse files
authored
Merge pull request academicpages#246 from aash1999/emptyFields
Empty fields
2 parents fce0e30 + b5e67e3 commit 12e4bcf

File tree

2 files changed

+25
-21
lines changed

2 files changed

+25
-21
lines changed

src/pages/education/EducationComponent.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Certifications from "../../containers/certifications/Certifications";
77
import CompetitiveSites from "../../components/competitiveSites/CompetitiveSites";
88
import EducationImg from "./EducationImg";
99
import { competitiveSites } from "../../portfolio";
10+
import { certifications } from "../../portfolio";
1011
import "./EducationComponent.css";
1112
import { Fade } from "react-reveal";
1213

@@ -38,7 +39,9 @@ class Education extends Component {
3839
</div>
3940
</Fade>
4041
<Educations theme={this.props.theme} />
41-
<Certifications theme={this.props.theme} />
42+
{certifications.certifications.length > 0 ? (
43+
<Certifications theme={this.props.theme} />
44+
) : null}
4245
</div>
4346
<Footer theme={this.props.theme} />
4447
<TopButton theme={this.props.theme} />

src/pages/projects/Projects.js

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,28 @@ class Projects extends Component {
6363
/>
6464

6565
{/* Publications */}
66-
67-
<div className="basic-projects">
68-
<Fade bottom duration={2000} distance="40px">
69-
<div className="publications-heading-div">
70-
<div className="publications-heading-text-div">
71-
<h1
72-
className="publications-heading-text"
73-
style={{ color: theme.text }}
74-
>
75-
{publicationsHeader.title}
76-
</h1>
77-
<p
78-
className="projects-header-detail-text subTitle"
79-
style={{ color: theme.secondaryText }}
80-
>
81-
{publicationsHeader["description"]}
82-
</p>
66+
{publications.data.length > 0 ? (
67+
<div className="basic-projects">
68+
<Fade bottom duration={2000} distance="40px">
69+
<div className="publications-heading-div">
70+
<div className="publications-heading-text-div">
71+
<h1
72+
className="publications-heading-text"
73+
style={{ color: theme.text }}
74+
>
75+
{publicationsHeader.title}
76+
</h1>
77+
<p
78+
className="projects-header-detail-text subTitle"
79+
style={{ color: theme.secondaryText }}
80+
>
81+
{publicationsHeader["description"]}
82+
</p>
83+
</div>
8384
</div>
84-
</div>
85-
</Fade>
86-
</div>
85+
</Fade>
86+
</div>
87+
) : null}
8788

8889
<div className="repo-cards-div-main">
8990
{publications.data.map((pub) => {

0 commit comments

Comments
 (0)