Fixed calendar and req profile
This commit is contained in:
parent
5e69e922f5
commit
6a74ddb424
@ -73,8 +73,8 @@ export const Navigation = () => {
|
||||
if (localStorage.getItem("role_status") === "18") {
|
||||
return;
|
||||
}
|
||||
apiRequest(`/profile/${localStorage.getItem("cardId")}`).then(
|
||||
(profileInfo) => dispatch(setProfileInfo(profileInfo))
|
||||
apiRequest(`/user/me`).then((profileInfo) =>
|
||||
dispatch(setProfileInfo(profileInfo.userCard))
|
||||
);
|
||||
}, [dispatch]);
|
||||
|
||||
|
@ -329,6 +329,8 @@ export const ProfileCalendarComponent = React.memo(
|
||||
styles={"clear-days"}
|
||||
onClick={() => {
|
||||
resetRangeDays();
|
||||
toggleActivePeriod();
|
||||
toggleRangeDays();
|
||||
}}
|
||||
>
|
||||
Сбросить
|
||||
|
@ -26,9 +26,9 @@ export const ProfileHeader = () => {
|
||||
if (localStorage.getItem("role_status") === "18") {
|
||||
return;
|
||||
}
|
||||
apiRequest(`/profile/${localStorage.getItem("cardId")}`).then(
|
||||
(profileInfo) => dispatch(setProfileInfo(profileInfo))
|
||||
);
|
||||
apiRequest(`/user/me`).then((profileInfo) => {
|
||||
dispatch(setProfileInfo(profileInfo.userCard));
|
||||
});
|
||||
}, [dispatch]);
|
||||
|
||||
const handler = () => {
|
||||
|
@ -129,7 +129,7 @@ export const Tracker = () => {
|
||||
e.target.closest("img").classList.toggle("open-desc-item");
|
||||
e.target
|
||||
.closest("td")
|
||||
.querySelector(".taskList__table__name-project")
|
||||
?.querySelector(".taskList__table__name-project")
|
||||
.classList.toggle("hide-desc");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user