This repository was archived by the owner on Apr 17, 2025. It is now read-only.
File tree 2 files changed +25
-21
lines changed 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";
7
7
import CompetitiveSites from "../../components/competitiveSites/CompetitiveSites" ;
8
8
import EducationImg from "./EducationImg" ;
9
9
import { competitiveSites } from "../../portfolio" ;
10
+ import { certifications } from "../../portfolio" ;
10
11
import "./EducationComponent.css" ;
11
12
import { Fade } from "react-reveal" ;
12
13
@@ -38,7 +39,9 @@ class Education extends Component {
38
39
</ div >
39
40
</ Fade >
40
41
< Educations theme = { this . props . theme } />
41
- < Certifications theme = { this . props . theme } />
42
+ { certifications . certifications . length > 0 ? (
43
+ < Certifications theme = { this . props . theme } />
44
+ ) : null }
42
45
</ div >
43
46
< Footer theme = { this . props . theme } />
44
47
< TopButton theme = { this . props . theme } />
Original file line number Diff line number Diff line change @@ -63,27 +63,28 @@ class Projects extends Component {
63
63
/>
64
64
65
65
{ /* 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 >
83
84
</ div >
84
- </ div >
85
- </ Fade >
86
- </ div >
85
+ </ Fade >
86
+ </ div >
87
+ ) : null }
87
88
88
89
< div className = "repo-cards-div-main" >
89
90
{ publications . data . map ( ( pub ) => {
You can’t perform that action at this time.
0 commit comments