active links in nav, delete report, loaders in report, changes routes
This commit is contained in:
@@ -96,9 +96,9 @@ export const ProfileCalendarComponent = React.memo(
|
||||
)}-${correctDay(new Date(day).getDate())}` === date.created_at
|
||||
) {
|
||||
if (userId) {
|
||||
return `../view/${date.created_at}/${userId}`;
|
||||
return `/profile/calendar/view/${date.created_at}/${userId}`;
|
||||
}
|
||||
return `../view/${date.created_at}/${localStorage.getItem("id")}`;
|
||||
return `/profile/calendar/view/${date.created_at}/${localStorage.getItem("id")}`;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ export const ProfileCalendarComponent = React.memo(
|
||||
return "#";
|
||||
}
|
||||
|
||||
return "../../report";
|
||||
return "/profile/calendar/report";
|
||||
}
|
||||
|
||||
const prevMonth = () => value.clone().subtract(1, "month");
|
||||
|
||||
Reference in New Issue
Block a user