From a8c141772d142086ad21b9a4a59fe45aac60355f Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Sun, 17 May 2020 19:08:57 +0200 Subject: [PATCH] alt tag on placeholders --- src/models/Dev.ts | 2 +- src/pages/Profile.tsx | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/models/Dev.ts b/src/models/Dev.ts index d84ec77..792b170 100644 --- a/src/models/Dev.ts +++ b/src/models/Dev.ts @@ -32,7 +32,7 @@ export const getDescription = (status?: string, company?: string): string => { if (status && company) return `${status} at ${company}`; if (status) return status; if (company) return `Employed at ${company}`; - return 'Document your current occupation.'; + return 'DevBook Member'; }; /** class implementing IDev. diff --git a/src/pages/Profile.tsx b/src/pages/Profile.tsx index ef6668c..22c65d0 100644 --- a/src/pages/Profile.tsx +++ b/src/pages/Profile.tsx @@ -127,7 +127,10 @@ const Profile: FC = ({dev}) => {

Experiences

{dev.experiences.length === 0 ? (
- + no experiences
) : ( dev.experiences.map((exp: Experience, i: number) => ( @@ -151,7 +154,7 @@ const Profile: FC = ({dev}) => {

Education

{dev.educations.length === 0 ? (
- + no educations
) : ( dev.educations.map((edu: Education, i: number) => ( @@ -180,9 +183,12 @@ const Profile: FC = ({dev}) => { GitHub Repos - {dev.repos.length === 0 ? ( + {dev.repos?.length === 0 ? (
- + no repositories
) : ( dev.repos.map((r: Repo, i: number) => (