Skip to content

Commit 704a889

Browse files
committed
MP-317 - trigger profile completeness update on updating skill & work
1 parent 97e0932 commit 704a889

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/apps/profiles/src/member-profile/education-and-certifications/EducationAndCertifications.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { EDIT_MODE_QUERY_PARAM, profileEditModes } from '../../config'
1515
import { AddButton, EditMemberPropertyBtn, EmptySection } from '../../components'
1616
import { MemberTCAInfo } from '../tca-info'
17-
import { notifyUniNavi, triggerSprigSurvey } from '../../lib'
17+
import { triggerSprigSurvey } from '../../lib'
1818

1919
import { ModifyEducationModal } from './ModifyEducationModal'
2020
import { EducationCard } from './EducationCard'
@@ -23,6 +23,7 @@ import styles from './EducationAndCertifications.module.scss'
2323
interface EducationAndCertificationsProps {
2424
profile: UserProfile
2525
authProfile: UserProfile | undefined
26+
refreshProfile: (handle: string) => void
2627
}
2728

2829
const EducationAndCertifications: FC<EducationAndCertificationsProps> = (props: EducationAndCertificationsProps) => {
@@ -70,7 +71,7 @@ const EducationAndCertifications: FC<EducationAndCertificationsProps> = (props:
7071
setTimeout(() => {
7172
setIsEditMode(false)
7273
mutateTraits()
73-
notifyUniNavi(props.profile)
74+
props.refreshProfile(props.profile.handle)
7475
triggerSprigSurvey(props.profile)
7576
}, 1000)
7677
}

src/apps/profiles/src/member-profile/page-layout/ProfilePageLayout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,15 @@ const ProfilePageLayout: FC<ProfilePageLayoutProps> = (props: ProfilePageLayoutP
100100
<WorkExpirence
101101
profile={props.profile}
102102
authProfile={props.authProfile}
103+
refreshProfile={props.refreshProfile}
103104
/>
104105
</div>
105106
</div>
106107
<div className={styles.sectionWrap}>
107108
<EducationAndCertifications
108109
profile={props.profile}
109110
authProfile={props.authProfile}
111+
refreshProfile={props.refreshProfile}
110112
/>
111113
</div>
112114
</div>

src/apps/profiles/src/member-profile/work-expirence/WorkExpirence.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useSearchParams } from 'react-router-dom'
44
import { MemberTraitsAPI, useMemberTraits, UserProfile, UserTrait, UserTraitIds } from '~/libs/core'
55

66
import { EDIT_MODE_QUERY_PARAM, profileEditModes } from '../../config'
7-
import { notifyUniNavi, triggerSprigSurvey } from '../../lib'
7+
import { triggerSprigSurvey } from '../../lib'
88
import { AddButton, EditMemberPropertyBtn, EmptySection } from '../../components'
99

1010
import { ModifyWorkExpirenceModal } from './ModifyWorkExpirenceModal'
@@ -14,6 +14,7 @@ import styles from './WorkExpirence.module.scss'
1414
interface WorkExpirenceProps {
1515
profile: UserProfile
1616
authProfile: UserProfile | undefined
17+
refreshProfile: (handle: string) => void
1718
}
1819

1920
const WorkExpirence: FC<WorkExpirenceProps> = (props: WorkExpirenceProps) => {
@@ -50,7 +51,7 @@ const WorkExpirence: FC<WorkExpirenceProps> = (props: WorkExpirenceProps) => {
5051
setTimeout(() => {
5152
setIsEditMode(false)
5253
mutateTraits()
53-
notifyUniNavi(props.profile)
54+
props.refreshProfile(props.profile.handle)
5455
triggerSprigSurvey(props.profile)
5556
}, 1000)
5657
}

0 commit comments

Comments
 (0)