diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-10-03 19:36:03 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-11 18:14:41 +0100 |
| commit | 0e60743d140aff66eca6df712f653ee20f5d4ef3 (patch) | |
| tree | e72bc8bf2314a26ba3c8e27e571d72e203bbf0c8 /src/pages/cv.tsx | |
| parent | a3fb0aa94717aafae897ac293488c43a099c0b2b (diff) | |
refactor(components): rewrite SocialLink component
* replace default label with a label prop
* rename name prop to icon prop
Diffstat (limited to 'src/pages/cv.tsx')
| -rw-r--r-- | src/pages/cv.tsx | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/src/pages/cv.tsx b/src/pages/cv.tsx index b23c7a2..84a1bb9 100644 --- a/src/pages/cv.tsx +++ b/src/pages/cv.tsx @@ -179,6 +179,22 @@ const CVPage: NextPageWithLayout = () => { } ); + const githubLabel = intl.formatMessage({ + defaultMessage: 'Github profile', + description: 'CVPage: Github profile link', + id: 'Jm0a6H', + }); + const gitlabLabel = intl.formatMessage({ + defaultMessage: 'Gitlab profile', + description: 'CVPage: Gitlab profile link', + id: '++U2Hm', + }); + const linkedinLabel = intl.formatMessage({ + defaultMessage: 'LinkedIn profile', + description: 'CVPage: LinkedIn profile link', + id: 'Sm2wCk', + }); + const widgets = [ <ImageWidget // eslint-disable-next-line react/jsx-no-literals -- Key allowed @@ -196,10 +212,22 @@ const CVPage: NextPageWithLayout = () => { title={socialMediaTitle} level={2} media={[ - { name: 'Github', url: PERSONAL_LINKS.GITHUB }, - { name: 'Gitlab', url: PERSONAL_LINKS.GITLAB }, { - name: 'LinkedIn', + icon: 'Github', + id: 'github', + label: githubLabel, + url: PERSONAL_LINKS.GITHUB, + }, + { + icon: 'Gitlab', + id: 'gitlab', + label: gitlabLabel, + url: PERSONAL_LINKS.GITLAB, + }, + { + icon: 'LinkedIn', + id: 'linkedin', + label: linkedinLabel, url: PERSONAL_LINKS.LINKEDIN, }, ]} |
