Skip to content

Commit eb005f1

Browse files
authored
Merge pull request #676 from topcoder-platform/issue-675
2 parents 6bb73da + 9ccefd9 commit eb005f1

File tree

5 files changed

+8
-36
lines changed

5 files changed

+8
-36
lines changed

src/apps/onboarding/src/components/connect-linked-in/index.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/apps/onboarding/src/pages/educations/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ export const PageEducationsContent: FC<{
3232
useEffect(() => {
3333
if (!educations && props.reduxEducations) {
3434
setEducations(props.reduxEducations)
35-
setEducationId(props.reduxEducations[props.reduxEducations.length - 1].id + 1)
35+
if (props.reduxEducations.length > 0) {
36+
setEducationId(props.reduxEducations[props.reduxEducations.length - 1].id + 1)
37+
}
3638
}
3739
/* eslint-disable react-hooks/exhaustive-deps */
3840
}, [props.reduxEducations])

src/apps/onboarding/src/pages/skills/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import SkillInfo from '../../models/SkillInfo'
1818
import SkillTag from '../../components/skill-tag'
1919

2020
import styles from './styles.module.scss'
21-
import ConnectLinkedIn from '../../components/connect-linked-in'
2221

2322
const PageSkillsContent: FC<{
2423
memberInfo?: Member,
@@ -109,8 +108,6 @@ const PageSkillsContent: FC<{
109108
/>
110109
</div>
111110
</div>
112-
113-
<ConnectLinkedIn />
114111
</div>
115112

116113
<ProgressBar

src/apps/onboarding/src/pages/start/index.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,8 @@ export const PageStart: FC<{}> = () => {
2525

2626
<div className={classNames('d-flex justify-content-between flex-wrap mt-30', styles.blockOr)}>
2727
<div>
28-
<span>We can extract data from your LinkedIn profile or a digital version of your resume.</span>
28+
<span>We can extract data from a digital version of your resume.</span>
2929
<div className={classNames(styles.blockImportButtons, 'd-flex')}>
30-
<Button
31-
size='lg'
32-
secondary
33-
iconToLeft
34-
>
35-
import from linked in
36-
</Button>
3730
<Button
3831
size='lg'
3932
secondary
@@ -71,6 +64,7 @@ export const PageStart: FC<{}> = () => {
7164
size='lg'
7265
primary
7366
iconToLeft
67+
onClick={() => navigate('../skills')}
7468
>
7569
next
7670
</Button>

src/apps/onboarding/src/pages/works/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { Button, PageDivider } from '~/libs/ui'
1111

1212
import { ProgressBar } from '../../components/progress-bar'
1313
import styles from './styles.module.scss'
14-
import ConnectLinkedIn from '../../components/connect-linked-in'
1514
import WorkInfo from '../../models/WorkInfo'
1615
import ModalAddWork from '../../components/modal-add-work'
1716
import IconEdit from '../../assets/images/edit.svg'
@@ -33,7 +32,9 @@ export const PageWorksContent: FC<{
3332
useEffect(() => {
3433
if (!works && props.reduxWorks) {
3534
setWorks(props.reduxWorks)
36-
setWorkId(props.reduxWorks[props.reduxWorks.length - 1].id + 1)
35+
if (props.reduxWorks.length > 0) {
36+
setWorkId(props.reduxWorks[props.reduxWorks.length - 1].id + 1)
37+
}
3738
}
3839
/* eslint-disable react-hooks/exhaustive-deps */
3940
}, [props.reduxWorks])
@@ -99,7 +100,6 @@ export const PageWorksContent: FC<{
99100
</span>
100101
) : null}
101102
</div>
102-
<ConnectLinkedIn />
103103
</div>
104104

105105
<ProgressBar

0 commit comments

Comments
 (0)