guild_front/src/components/Sidebar/Sidebar.js

28 lines
960 B
JavaScript
Raw Normal View History

2021-05-27 17:44:11 +03:00
import React from 'react';
2021-06-18 17:16:08 +03:00
import { Link } from 'react-router-dom';
2021-06-11 16:58:44 +03:00
import dogBig from '../../images/dog.jpg';
2021-05-31 18:23:25 +03:00
import style from './Sidebar.module.css';
2021-07-09 11:29:02 +03:00
import { useHistory } from 'react-router-dom';
import { path } from '../../redux/outstaffingSlice';
import { useDispatch } from 'react-redux';
2021-05-27 17:44:11 +03:00
2021-07-02 16:02:47 +03:00
const Sidebar = () => {
2021-07-09 11:29:02 +03:00
const history = useHistory();
const dispatch = useDispatch();
2021-05-27 17:44:11 +03:00
return (
<div className={style.candidateSidebar}>
<div className={style.candidateSidebar__info}>
2021-06-11 16:58:44 +03:00
<img src={dogBig} alt="" />
2021-05-27 17:44:11 +03:00
<p className={style.candidateSidebar__info__e}>Опыт работы</p>
<p className={style.candidateSidebar__info__y}>4+ лет</p>
2021-07-09 11:29:02 +03:00
<Link to={`/form`} onClick={() => dispatch(path(history.location.pathname))}>
2021-06-18 17:16:08 +03:00
<button className={style.candidateSidebar__info__btn}>Выбрать к собеседованию</button>
</Link>
2021-05-27 17:44:11 +03:00
</div>
</div>
);
};
export default Sidebar;