commit
74ea0f9c77
@ -32,7 +32,7 @@ const Candidate = () => {
|
|||||||
if (localStorage.getItem("role_status") !== "18") {
|
if (localStorage.getItem("role_status") !== "18") {
|
||||||
return <Navigate to="/profile" replace />;
|
return <Navigate to="/profile" replace />;
|
||||||
}
|
}
|
||||||
const { id: candidateId } = useParams();
|
// const { id: candidateId } = useParams();
|
||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
@ -47,10 +47,10 @@ const Candidate = () => {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
apiRequest(`/profile/${candidateId}`, {
|
apiRequest(`/user/me`, {}).then((el) =>
|
||||||
params: Number(candidateId),
|
dispatch(currentCandidate(el.userCard))
|
||||||
}).then((el) => dispatch(currentCandidate(el)));
|
);
|
||||||
}, [dispatch, candidateId]);
|
}, [dispatch]);
|
||||||
|
|
||||||
const { position_id, skillValues, vc_text: text } = currentCandidateObj;
|
const { position_id, skillValues, vc_text: text } = currentCandidateObj;
|
||||||
|
|
||||||
|
@ -73,8 +73,8 @@ export const Navigation = () => {
|
|||||||
if (localStorage.getItem("role_status") === "18") {
|
if (localStorage.getItem("role_status") === "18") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
apiRequest(`/profile/${localStorage.getItem("cardId")}`).then(
|
apiRequest(`/user/me`).then((profileInfo) =>
|
||||||
(profileInfo) => dispatch(setProfileInfo(profileInfo))
|
dispatch(setProfileInfo(profileInfo.userCard))
|
||||||
);
|
);
|
||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
|
@ -329,6 +329,8 @@ export const ProfileCalendarComponent = React.memo(
|
|||||||
styles={"clear-days"}
|
styles={"clear-days"}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
resetRangeDays();
|
resetRangeDays();
|
||||||
|
toggleActivePeriod();
|
||||||
|
toggleRangeDays();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Сбросить
|
Сбросить
|
||||||
|
@ -26,9 +26,9 @@ export const ProfileHeader = () => {
|
|||||||
if (localStorage.getItem("role_status") === "18") {
|
if (localStorage.getItem("role_status") === "18") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
apiRequest(`/profile/${localStorage.getItem("cardId")}`).then(
|
apiRequest(`/user/me`).then((profileInfo) => {
|
||||||
(profileInfo) => dispatch(setProfileInfo(profileInfo))
|
dispatch(setProfileInfo(profileInfo.userCard));
|
||||||
);
|
});
|
||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
const handler = () => {
|
const handler = () => {
|
||||||
|
@ -129,7 +129,7 @@ export const Tracker = () => {
|
|||||||
e.target.closest("img").classList.toggle("open-desc-item");
|
e.target.closest("img").classList.toggle("open-desc-item");
|
||||||
e.target
|
e.target
|
||||||
.closest("td")
|
.closest("td")
|
||||||
.querySelector(".taskList__table__name-project")
|
?.querySelector(".taskList__table__name-project")
|
||||||
.classList.toggle("hide-desc");
|
.classList.toggle("hide-desc");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user