diff --git a/src/components/ProfileCalendar/ProfileCalendar.js b/src/components/ProfileCalendar/ProfileCalendar.js index c18d53ba..183f4e5d 100644 --- a/src/components/ProfileCalendar/ProfileCalendar.js +++ b/src/components/ProfileCalendar/ProfileCalendar.js @@ -1,5 +1,5 @@ import React, { useEffect, useState } from 'react' -import {useSelector} from 'react-redux' +import {useDispatch, useSelector} from 'react-redux' import { Link } from 'react-router-dom' import moment from "moment"; @@ -11,11 +11,12 @@ import {ProfileHeader} from "../ProfileHeader/ProfileHeader"; import {useRequest} from "../../hooks/useRequest"; import { getProfileInfo } from '../../redux/outstaffingSlice' +import {setReportDate} from "../../redux/reportSlice"; import './profileCalendar.scss' - export const ProfileCalendar = () => { + const dispatch = useDispatch(); const profileInfo = useSelector(getProfileInfo); const [month, setMonth] = useState(''); const [reports, setReports] = useState([]); @@ -60,7 +61,9 @@ export const ProfileCalendar = () => {
{profileInfo.fio} {profileInfo.specification}
- +