Skip to content

Commit 8250d89

Browse files
committed
MP-168 updated for self editing view
1 parent e8d8836 commit 8250d89

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const MemberLinks: FC<MemberLinksProps> = (props: MemberLinksProps) => {
8383
}, 1000)
8484
}
8585

86-
return !loading && (canEdit || memberLinks?.links) ? (
86+
return !loading && (canEdit || memberLinks?.links?.length) ? (
8787
<div className={styles.container}>
8888
<div className={styles.titleWrap}>
8989
<p className='body-main-bold'>Links</p>

src/apps/profiles/src/member-profile/skills/HowSkillsWorkModal/HowSkillsWorkModal.tsx

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,48 @@ import styles from './HowSkillsWorkModal.module.scss'
77
interface HowSkillsWorkModalProps {
88
onClose: () => void
99
isTalentSearch?: boolean
10+
canEdit?: boolean
1011
}
1112

1213
const HowSkillsWorkModal: FC<HowSkillsWorkModalProps> = (props: HowSkillsWorkModalProps) => (
1314
<BaseModal
1415
onClose={props.onClose}
1516
open
16-
title='How Skills Work?'
17+
title='How Skills Work'
1718
size='lg'
1819
>
1920
{
20-
props.isTalentSearch ? (
21+
!!props.canEdit && (
22+
<div className={styles.container}>
23+
<p className='body-large-bold'>
24+
Topcoder Proven Skills
25+
</p>
26+
<p className={styles.checkIconRow}>
27+
Look for the proven
28+
<IconOutline.CheckCircleIcon />
29+
next to skills.
30+
</p>
31+
<p>Here’s how it works:</p>
32+
<ul>
33+
<li>You perform specific Topcoder opportunities</li>
34+
<li>Each opportunity has associated skills (ex: javascript, HTML)</li>
35+
<li>
36+
You can prove you are proficient in these skills
37+
by completing opportunities on the platform
38+
</li>
39+
<li>Topcoder tracks and labels these skills, displaying what skills have been proven</li>
40+
<li>The more opportunities our experts complete the higher they rate for associated skills</li>
41+
</ul>
42+
<p>
43+
You can also self-proclaim skills that have not yet been proven.
44+
These will display as skills without a checkmark.
45+
</p>
46+
</div>
47+
)
48+
}
49+
50+
{
51+
!props.canEdit && props.isTalentSearch && (
2152
<div className={styles.container}>
2253
<p className='body-large-bold'>
2354
Topcoder Skill Matching
@@ -44,7 +75,11 @@ const HowSkillsWorkModal: FC<HowSkillsWorkModalProps> = (props: HowSkillsWorkMod
4475
These will display as skills without a checkmark.
4576
</p>
4677
</div>
47-
) : (
78+
)
79+
}
80+
81+
{
82+
!props.canEdit && !props.isTalentSearch && (
4883
<div className={styles.container}>
4984
<p className='body-large-bold'>
5085
Topcoder Proven Skills

src/apps/profiles/src/member-profile/skills/MemberSkillsInfo.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ const MemberSkillsInfo: FC<MemberSkillsInfoProps> = (props: MemberSkillsInfoProp
143143
<HowSkillsWorkModal
144144
onClose={handleHowSkillsWorkClose}
145145
isTalentSearch={isTalentSearch}
146+
canEdit={canEdit}
146147
/>
147148
)
148149
}

0 commit comments

Comments
 (0)