From bcf89c01f5705849f84661d92eb6c647be027435 Mon Sep 17 00:00:00 2001 From: M1kola Date: Mon, 16 Jan 2023 21:11:46 +0300 Subject: [PATCH] fix report --- src/components/ProfileCalendar/ProfileCalendar.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/ProfileCalendar/ProfileCalendar.js b/src/components/ProfileCalendar/ProfileCalendar.js index d2c7c7be..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,9 +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([]); @@ -58,7 +61,9 @@ export const ProfileCalendar = () => {

{profileInfo.fio} {profileInfo.specification}

- +