Skip to content

Commit

Permalink
Merge pull request #1365 from 42organization/recruit
Browse files Browse the repository at this point in the history
[test-deploy] recruit user api 수정사항 배포
  • Loading branch information
yoouyeon authored Apr 6, 2024
2 parents 1a5af9b + 3189e17 commit d4497b2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions components/recruit/Main/MyApplicationInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ import style from 'styles/recruit/Main/myRecruitment.module.scss';
const MyApplicationInfo = ({
status,
recruitId,
applicationId,
}: {
status?: resultType;
recruitId: string;
applicationId?: number;
}) => {
const router = useRouter();

const onCheck = () => {
// router.push(`/recruit/${recruitId}/applications?applicationId=${applicationId});
router.push(`/recruit/${recruitId}/my-application?applicationId=${1}`);
if (!applicationId) return;
router.push(
`/recruit/${recruitId}/applications?applicationId=${applicationId}`
);
};

if (!status)
Expand Down
1 change: 1 addition & 0 deletions components/recruit/Main/MyRecruitment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const MyRecruitment = ({ applicationId }: { applicationId?: number }) => {
<MyApplicationInfo
status={status}
recruitId={router.query.id as string}
applicationId={applicationId}
/>
</CollapseListItem>
<CollapseListItem title={'지원 현황'}>
Expand Down
2 changes: 1 addition & 1 deletion components/recruit/RecruitList/RecruitListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const RecruitListItem = ({ recruit }: { recruit: recruitment }) => {
secondary={
dateToString(new Date(recruit.startDate)) +
' ~ ' +
dateToString(new Date(recruit.startDate))
dateToString(new Date(recruit.endDate))
}
/>
</ListItemButton>
Expand Down
2 changes: 1 addition & 1 deletion hooks/recruit/useUserApplicationForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function useUserApplicationForm(
(applicantAnswers: IApplicantAnswer[]): Promise<AxiosResponse> => {
if (mode === 'APPLY' && applicationId === null) {
return instance.post(`/recruitments/${recruitId}/applications`, {
form: applicantAnswers,
forms: applicantAnswers,
});
}
return instance.patch(
Expand Down

0 comments on commit d4497b2

Please sign in to comment.