diff --git a/src/pages/Profile.tsx b/src/pages/Profile.tsx index eaf2126..ef6668c 100644 --- a/src/pages/Profile.tsx +++ b/src/pages/Profile.tsx @@ -125,42 +125,54 @@ const Profile: FC = ({dev}) => {

Experiences

- {dev.experiences?.map((exp: Experience, i: number) => ( -
-

{exp.company}

-

{getTimePeriod(exp.from, exp.to)}

-

- Position: - {exp.position} -

-

- Description: - {exp.description} -

+ {dev.experiences.length === 0 ? ( +
+
- ))} + ) : ( + dev.experiences.map((exp: Experience, i: number) => ( +
+

{exp.company}

+

{getTimePeriod(exp.from, exp.to)}

+

+ Position: + {exp.position} +

+

+ Description: + {exp.description} +

+
+ )) + )}

Education

- {dev.educations?.map((edu: Education, i: number) => ( -
-

{edu.school}

-

{getTimePeriod(edu.from, edu.to)}

-

- Degree: - {edu.degree} -

-

- Field: - {edu.field} -

-

- Description: - {edu.description} -

+ {dev.educations.length === 0 ? ( +
+
- ))} + ) : ( + dev.educations.map((edu: Education, i: number) => ( +
+

{edu.school}

+

{getTimePeriod(edu.from, edu.to)}

+

+ Degree: + {edu.degree} +

+

+ Field: + {edu.field} +

+

+ Description: + {edu.description} +

+
+ )) + )}
@@ -168,29 +180,35 @@ const Profile: FC = ({dev}) => { GitHub Repos - {dev.repos?.map((r: Repo, i: number) => ( -
-
-

- {r.name} -

-

{r.description}

-
-
-
    -
  • - Stars: 42 -
  • -
  • - Watchers: 2 -
  • -
  • - Forks: 4 -
  • -
-
+ {dev.repos.length === 0 ? ( +
+
- ))} + ) : ( + dev.repos.map((r: Repo, i: number) => ( +
+
+

+ {r.name} +

+

{r.description}

+
+
+
    +
  • + Stars: 42 +
  • +
  • + Watchers: 2 +
  • +
  • + Forks: 4 +
  • +
+
+
+ )) + )}