import React from 'react'; import { useHistory, useParams } from 'react-router-dom'; import style from './Candidate.module.css'; import arrow from '../../images/right-arrow.png'; import rectangle from '../../images/rectangle_secondPage.png'; import Sidebar from '../Sidebar/Sidebar'; import SectionOne from './sections/SectionOne'; import SectionTwo from './sections/SectionTwo'; import SectionThree from './sections/SectionThree'; import SectionFour from './sections/SectionFour'; import SectionFive from './sections/SectionFive'; import SectionSkills from './sections/SectionSkills'; const Candidate = ({ candidatesArr, getCandidateForCalendar }) => { const history = useHistory(); const { id: candidateId } = useParams(); const currentCandidate = candidatesArr.find((el) => Number(el.id) === Number(candidateId)); const { name, skillsName, img } = currentCandidate; let classes; if (skillsName === 'Backend') { classes = style.back; console.log(classes); } else if (skillsName === 'Design') { classes = style.des; } else if (skillsName === 'Frontend') { classes = style.front; } return (

Аутстаффинг it-персонала

history.push('/')}>
Вернуться к списку

{skillsName}

{name}

# Описание опыта

# Средства и инструменты:

# Описание опыта

# Средства и инструменты:

# Функционал:

); }; export default Candidate;