diff --git a/src/components/Calendar/calendarComponent.scss b/src/components/Calendar/calendarComponent.scss
index 5552dd04..5ae4d7ce 100644
--- a/src/components/Calendar/calendarComponent.scss
+++ b/src/components/Calendar/calendarComponent.scss
@@ -158,6 +158,10 @@
line-height: normal;
text-align: center;
+ a {
+ color: black;
+ }
+
img {
width: 16px;
height: 16px;
diff --git a/src/components/ProfileCalendar/ProfileCalendarComponent.js b/src/components/ProfileCalendar/ProfileCalendarComponent.js
index 3fba3ecc..7fbdd769 100644
--- a/src/components/ProfileCalendar/ProfileCalendarComponent.js
+++ b/src/components/ProfileCalendar/ProfileCalendarComponent.js
@@ -65,6 +65,19 @@ 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 (
@@ -72,7 +85,7 @@ export const ProfileCalendarComponent = React.memo(
new Date(day).getMonth() + 1
)}-${correctDay(new Date(day).getDate())}` === date.created_at
) {
- return `../view/${day}`;
+ return;
}
}
return "../../report";
@@ -146,38 +159,33 @@ export const ProfileCalendarComponent = React.memo(
))
)}
- {shortReport && (
-
-
-
- )}
-
{shortReport &&