diff --git a/src/components/Candidate/Candidate.jsx b/src/components/Candidate/Candidate.jsx
index ea60aa86..b0389019 100644
--- a/src/components/Candidate/Candidate.jsx
+++ b/src/components/Candidate/Candidate.jsx
@@ -32,7 +32,7 @@ export const Candidate = () => {
if (localStorage.getItem("role_status") !== "18") {
return ;
}
- // const { id: candidateId } = useParams();
+ const { id: candidateId } = useParams();
const navigate = useNavigate();
@@ -47,7 +47,7 @@ export const Candidate = () => {
}, []);
useEffect(() => {
- apiRequest(`/user/me`, {}).then((el) =>
+ apiRequest(`/resume?userId=${candidateId}`).then((el) =>
dispatch(currentCandidate(el.userCard))
);
}, [dispatch]);
@@ -103,9 +103,7 @@ export const Candidate = () => {
link: "/profile/catalog"
},
{
- name: `${currentCandidateObj.specification} ${
- SKILLS[currentCandidateObj.position_id]
- }, ${LEVELS[currentCandidateObj.level]}`,
+ name: `${currentCandidateObj.fio}`,
link: `/candidate/${currentCandidateObj.id}`
}
]}
@@ -115,6 +113,7 @@ export const Candidate = () => {
+ {currentCandidateObj.fio} {" "}
{currentCandidateObj.specification} {" "}
{SKILLS[currentCandidateObj.position_id]} {" "}
{LEVELS[currentCandidateObj.level]}
diff --git a/src/pages/PartnerEmployeeReport/PartnerEmployeeReport.jsx b/src/pages/PartnerEmployeeReport/PartnerEmployeeReport.jsx
index aafbb36b..c0a5ced9 100644
--- a/src/pages/PartnerEmployeeReport/PartnerEmployeeReport.jsx
+++ b/src/pages/PartnerEmployeeReport/PartnerEmployeeReport.jsx
@@ -1,7 +1,7 @@
import moment from "moment/moment";
import React, { useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
-import { Navigate, useParams } from "react-router-dom";
+import { useParams } from "react-router-dom";
import { getRequestDates, setRequestDate } from "@redux/reportSlice";
diff --git a/src/pages/Summary/Summary.jsx b/src/pages/Summary/Summary.jsx
index 78a9c4e2..b7c48a27 100644
--- a/src/pages/Summary/Summary.jsx
+++ b/src/pages/Summary/Summary.jsx
@@ -33,9 +33,9 @@ export const Summary = () => {
const profileInfo = useSelector(getProfileInfo);
const [openGit, setOpenGit] = useState(false);
const [gitInfo, setGitInfo] = useState([]);
- const [editSummeryOpen, setEditSummeryOpen] = useState(false);
+ const [editSummaryOpen, setEditSummaryOpen] = useState(false);
const [editSkills, setEditSkills] = useState(false);
- const [summery, setSummery] = useState("");
+ const [summary, setSummary] = useState("");
const [selectedSkills, setSelectedSkills] = useState([]);
const [selectSkillsOpen, setSelectSkillsOpen] = useState(false);
const [skillsList, seSkillsList] = useState([]);
@@ -48,7 +48,7 @@ export const Summary = () => {
}, []);
useEffect(() => {
- setSummery(profileInfo.vc_text);
+ setSummary(profileInfo.vc_text);
setSelectedSkills(profileInfo.skillValues);
}, [profileInfo]);
@@ -69,11 +69,11 @@ export const Summary = () => {
}).then(() => {});
}
- function editSummery() {
+ function editSummary() {
apiRequest("/resume/edit-text", {
method: "PUT",
data: {
- resume: summery
+ resume: summary
}
}).then(() => {
showNotification({
@@ -221,21 +221,21 @@ export const Summary = () => {
Опыт работы
- {editSummeryOpen ? (
+ {editSummaryOpen ? (
{
}}
onChange={(event, editor) => {
const data = editor.getData();
- setSummery(data);
+ setSummary(data);
}}
/>
) : (
)}