Skip to content

Commit 507a796

Browse files
committed
MP-152 add GitHub to member links select
1 parent 2ff8c3e commit 507a796

File tree

6 files changed

+28
-6
lines changed

6 files changed

+28
-6
lines changed

src/apps/profiles/src/member-profile/links/MemberLinks.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
svg {
2525
width: 24px;
2626
height: 24px;
27+
28+
path {
29+
fill: #333333;
30+
}
2731
}
2832
}
2933
}

src/apps/profiles/src/member-profile/links/MemberLinks.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { useMemberTraits, UserProfile, UserTrait, UserTraitIds, UserTraits } fro
66
import {
77
IconOutline,
88
SocialIconFacebook,
9-
SocialIconInstagram,
10-
SocialIconLinkedIn,
119
SocialIconTwitter,
1210
SocialIconYoutube,
1311
} from '~/libs/ui'
@@ -16,6 +14,9 @@ import { EditMemberPropertyBtn } from '../../components'
1614
import { EDIT_MODE_QUERY_PARAM, profileEditModes } from '../../config'
1715

1816
import { ModifyMemberLinksModal } from './ModifyMemberLinksModal'
17+
import { ReactComponent as GitHubLinkIcon } from './assets/github-link-icon.svg'
18+
import { ReactComponent as InstagramLinkIcon } from './assets/instagram-link-icon.svg'
19+
import { ReactComponent as LinkedInLinkIcon } from './assets/linkedIn-link-icon.svg'
1920
import styles from './MemberLinks.module.scss'
2021

2122
interface MemberLinksProps {
@@ -27,12 +28,14 @@ export function renderLinkIcon(linkName: string): JSX.Element {
2728
switch (linkName) {
2829
case 'Facebook':
2930
return <SocialIconFacebook />
31+
case 'GitHub':
32+
return <GitHubLinkIcon />
3033
case 'Twitter':
3134
return <SocialIconTwitter />
3235
case 'LinkedIn':
33-
return <SocialIconLinkedIn />
36+
return <LinkedInLinkIcon />
3437
case 'Instagram':
35-
return <SocialIconInstagram />
38+
return <InstagramLinkIcon />
3639
case 'YouTube':
3740
return <SocialIconYoutube />
3841
default:

src/apps/profiles/src/member-profile/links/ModifyMemberLinksModal/link-types.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export const linkTypes: Array<{[key: string]: string}> = [
33
name: 'Facebook',
44
},
55
{
6-
name: 'Twitter',
6+
name: 'GitHub',
77
},
88
{
99
name: 'Instagram',
@@ -12,9 +12,12 @@ export const linkTypes: Array<{[key: string]: string}> = [
1212
name: 'LinkedIn',
1313
},
1414
{
15-
name: 'YouTube',
15+
name: 'Twitter',
1616
},
1717
{
1818
name: 'Website',
1919
},
20+
{
21+
name: 'YouTube',
22+
},
2023
]
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)