Skip to content

Commit

Permalink
Merge branch 'develop' into feature/#60-createReviews
Browse files Browse the repository at this point in the history
  • Loading branch information
KANGYONGSU23 authored Apr 4, 2024
2 parents f30b036 + 2d5f969 commit c76a4ee
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/apis/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { AuthCode, IAuthorizationResponse, SendAuthCodeType } from "./type";
const router = "/auth";

export const useReissueToken = async (refresh_token: string) => {
const response = await axios.put<IAuthorizationResponse>(
`${process.env.NEXT_PUBLIC_BASE_URL}${router}/reissue?platform_type=WEB`,
const response = await axios.put<IAuthorizationResponse>(
`${process.env.NEXT_PUBLIC_BASE_URL}${router}/reissue?platform-type=WEB`,
null,
{
headers: {
Expand Down
2 changes: 2 additions & 0 deletions src/apis/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ instance.interceptors.response.use(
const accessExpired = new Date(res.access_expires_at);
const refreshExpired = new Date(res.refresh_expires_at);
cookies.set("access_token", res.access_token, {
path: '/',
expires: accessExpired,
});
cookies.set("refresh_token", res.refresh_token, {
path: '/',
expires: refreshExpired,
});
if (config!.headers) {
Expand Down
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 c76a4ee

Please sign in to comment.