diff --git a/src/apps/onboarding/src/components/connect-linked-in/index.tsx b/src/apps/onboarding/src/components/connect-linked-in/index.tsx deleted file mode 100644 index ddff9dc93..000000000 --- a/src/apps/onboarding/src/components/connect-linked-in/index.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-disable ordered-imports/ordered-imports */ -/* eslint-disable react/jsx-no-bind */ -import React, { FC } from 'react' - -import { Button } from '~/libs/ui' - -const ConnectLinkedIn: FC<{}> = () => ( -
- Wait! Get my skills from LinkedIn instead... - -
-) - -export default ConnectLinkedIn diff --git a/src/apps/onboarding/src/pages/educations/index.tsx b/src/apps/onboarding/src/pages/educations/index.tsx index 9457d96c2..09cbaacf7 100644 --- a/src/apps/onboarding/src/pages/educations/index.tsx +++ b/src/apps/onboarding/src/pages/educations/index.tsx @@ -32,7 +32,9 @@ export const PageEducationsContent: FC<{ useEffect(() => { if (!educations && props.reduxEducations) { setEducations(props.reduxEducations) - setEducationId(props.reduxEducations[props.reduxEducations.length - 1].id + 1) + if (props.reduxEducations.length > 0) { + setEducationId(props.reduxEducations[props.reduxEducations.length - 1].id + 1) + } } /* eslint-disable react-hooks/exhaustive-deps */ }, [props.reduxEducations]) diff --git a/src/apps/onboarding/src/pages/skills/index.tsx b/src/apps/onboarding/src/pages/skills/index.tsx index 9eb871e38..6f1372ac2 100644 --- a/src/apps/onboarding/src/pages/skills/index.tsx +++ b/src/apps/onboarding/src/pages/skills/index.tsx @@ -18,7 +18,6 @@ import SkillInfo from '../../models/SkillInfo' import SkillTag from '../../components/skill-tag' import styles from './styles.module.scss' -import ConnectLinkedIn from '../../components/connect-linked-in' const PageSkillsContent: FC<{ memberInfo?: Member, @@ -109,8 +108,6 @@ const PageSkillsContent: FC<{ /> - - = () => {
- We can extract data from your LinkedIn profile or a digital version of your resume. + We can extract data from a digital version of your resume.
- diff --git a/src/apps/onboarding/src/pages/works/index.tsx b/src/apps/onboarding/src/pages/works/index.tsx index 931a10ccd..de933170a 100644 --- a/src/apps/onboarding/src/pages/works/index.tsx +++ b/src/apps/onboarding/src/pages/works/index.tsx @@ -11,7 +11,6 @@ import { Button, PageDivider } from '~/libs/ui' import { ProgressBar } from '../../components/progress-bar' import styles from './styles.module.scss' -import ConnectLinkedIn from '../../components/connect-linked-in' import WorkInfo from '../../models/WorkInfo' import ModalAddWork from '../../components/modal-add-work' import IconEdit from '../../assets/images/edit.svg' @@ -33,7 +32,9 @@ export const PageWorksContent: FC<{ useEffect(() => { if (!works && props.reduxWorks) { setWorks(props.reduxWorks) - setWorkId(props.reduxWorks[props.reduxWorks.length - 1].id + 1) + if (props.reduxWorks.length > 0) { + setWorkId(props.reduxWorks[props.reduxWorks.length - 1].id + 1) + } } /* eslint-disable react-hooks/exhaustive-deps */ }, [props.reduxWorks]) @@ -99,7 +100,6 @@ export const PageWorksContent: FC<{ ) : null}
-