diff --git a/src/components/ProfileCalendar/ProfileCalendarComponent.js b/src/components/ProfileCalendar/ProfileCalendarComponent.js
index 7fbdd769..1e57cea5 100644
--- a/src/components/ProfileCalendar/ProfileCalendarComponent.js
+++ b/src/components/ProfileCalendar/ProfileCalendarComponent.js
@@ -65,19 +65,6 @@ export const ProfileCalendarComponent = React.memo(
return "pass";
}
- // function correctRoute(day) {
- // for (const date of reports) {
- // if (
- // `${new Date(day).getFullYear()}-${correctDay(
- // new Date(day).getMonth() + 1
- // )}-${correctDay(new Date(day).getDate())}` === date.created_at
- // ) {
- // return `../view/${day}`;
- // }
- // }
- // return "../../report";
- // }
-
function correctRoute(day) {
for (const date of reports) {
if (
diff --git a/src/pages/ViewReport/ViewReport.jsx b/src/pages/ViewReport/ViewReport.jsx
index f69deb4b..224e0702 100644
--- a/src/pages/ViewReport/ViewReport.jsx
+++ b/src/pages/ViewReport/ViewReport.jsx
@@ -1,13 +1,11 @@
import React, { useEffect, useState } from "react";
import { Link, Navigate, useParams } from "react-router-dom";
-import { useSelector } from "react-redux";
-import { getReportDate } from "../../redux/reportSlice";
-
import { Loader } from "../../components/Loader/Loader";
import { ProfileHeader } from "../../components/ProfileHeader/ProfileHeader";
import { ProfileBreadcrumbs } from "../../components/ProfileBreadcrumbs/ProfileBreadcrumbs";
import { Footer } from "../../components/Footer/Footer";
+import { Navigation } from "../../components/Navigation/Navigation";
import { apiRequest } from "../../api/request";
import {
@@ -20,22 +18,20 @@ import arrow from "../../images/right-arrow.png";
import arrowSwitchDate from "../../images/arrowViewReport.png";
import "./viewReport.scss";
-import { Navigation } from "../../components/Navigation/Navigation";
export const ViewReport = () => {
if (localStorage.getItem("role_status") === "18") {
return
{getCorrectDate(dateReport.id)}
-