Skip to content

Commit

Permalink
Merge branch 'hotfix' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
KANGYONGSU23 committed Apr 4, 2024
2 parents 7452ae8 + b3589a5 commit 2d5f969
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
23 changes: 17 additions & 6 deletions src/apis/file/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,23 @@ export const useCreatePresignedURL = () => {
});
},
onError: (error: AxiosError) => {
if (error.response)
append({
title: "",
message: "파일 업로드에 실패했습니다.",
type: "RED",
});
switch (error.response?.status) {
case 400 : {
append({
title: '',
message: '잘못된 파일 확장자입니다.',
type: 'RED',
})
}
break;
default : {
append({
title: "",
message: "파일 업로드에 실패했습니다.",
type: "RED",
});
}
}
},
}
);
Expand Down
12 changes: 11 additions & 1 deletion src/app/recruitments/apply/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export default function Apply() {
<p className="mb-[60px] text-caption leading-caption font-r text-[#7f7f7f]">
제출서류 : {recruitmentsDetial?.submit_document}
</p>

<TitleBox title="제출서류">
<Header_Contents title="포트폴리오">
<FileUploader
Expand Down Expand Up @@ -168,7 +169,15 @@ export default function Apply() {
/>
</Header_Contents>
</TitleBox>
<div className="flex justify-end w-full mt-14">
<div className="flex justify-between items-end w-full mt-14">
<div>
<p className="text-caption leading-caption font-r text-[#E74C3C]">
※ 파일 첨부 시 파일 확장자를 확인해 주시기 바랍니다.
</p>
<p className="text-caption leading-caption font-r text-[#7f7f7f]">
pdf, ppt, pptx, hwp, jpg, png, zip, txt, mp4, png, jpg, svg
</p>
</div>
<GhostBtn
onClick={() => {
setIsClickedApplyBtn(true);
Expand Down Expand Up @@ -204,6 +213,7 @@ export default function Apply() {
</div>
</div>
<div className="self-end mt-4">

<GhostBtn
onClick={() => {
onUploadFile(fileList);
Expand Down

0 comments on commit 2d5f969

Please sign in to comment.