import React from 'react'; import { useHistory, useParams } from 'react-router-dom'; import style from './Candidate.module.css'; import { candidatesList } from '../Home/Home'; 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 = () => { const history = useHistory(); const { id: candidateId } = useParams(); const currentCandidate = candidatesList.find((el) => el.id === Number(candidateId)); const { name, img, header } = currentCandidate; let classes; if (name === 'Backend') { classes = style.back; console.log(classes); } else if (name === 'Design') { classes = style.des; } else if (name === 'Frontend') { classes = style.front; } return (

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

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

{header}

{name} разработчик, Middle

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

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

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

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

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

); }; export default Candidate;