Skip to content

Commit

Permalink
feat: 59-resume detail
Browse files Browse the repository at this point in the history
  • Loading branch information
SOTETERO committed Jun 6, 2024
1 parent 25495e1 commit e836d88
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 484 deletions.
6 changes: 6 additions & 0 deletions src/api/resumeAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ export const resumeAPI = {
getResume() {
return axiosWithAuth.get("/resume");
},
getResumeId(id) {
return axiosWithAuth.get(`/resume/${id}`);
},
postResume(data) {
return axiosWithAuth.post("/resume", data);
},
removeResume(id) {
return axiosWithAuth.delete(`/resume/${id}`);
},
};
3 changes: 2 additions & 1 deletion src/components/MyPage/CreateResume/createResume.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const CreateResume = () => {
certificates.push({
title: certificateName,
startDate: certificateStartDate,
endDate: "", //날짜 입력란이 한개만 있음
endDate: "2000-01-01", //날짜 입력란이 한개만 있음
introduction: certificateIntroduction,
certificate_url: certificateUrl,
});
Expand Down Expand Up @@ -241,6 +241,7 @@ const CreateResume = () => {
homepages: homepages,
};

console.log(careers);
console.log(data);
resumeAPI
.postResume(data)
Expand Down
2 changes: 1 addition & 1 deletion src/components/MyPage/MyInfo/myInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ const MyInfo = ({ IsWithdrawal, innerRef }) => {
justifyContent: "flex-end",
}}
>
<BlueButton onClick={() => SaveUserData()} isVisible={visible.step11}>
<BlueButton onClick={() => SaveUserData()} $isVisible={visible.step11}>
저장
</BlueButton>
<CannelButton $isVisible={visible.step11}>취소</CannelButton>
Expand Down
Loading

0 comments on commit e836d88

Please sign in to comment.