File tree Expand file tree Collapse file tree 2 files changed +25
-21
lines changed
Expand file tree Collapse file tree 2 files changed +25
-21
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import Certifications from "../../containers/certifications/Certifications";
77import CompetitiveSites from "../../components/competitiveSites/CompetitiveSites" ;
88import EducationImg from "./EducationImg" ;
99import { competitiveSites } from "../../portfolio" ;
10+ import { certifications } from "../../portfolio" ;
1011import "./EducationComponent.css" ;
1112import { 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 } />
Original file line number Diff line number Diff 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 ) => {
You can’t perform that action at this time.
0 commit comments