Skip to content

Commit

Permalink
chore :: 지원서보기 수정
Browse files Browse the repository at this point in the history
지원서보기 수정
  • Loading branch information
phyuna0525 authored Nov 20, 2024
2 parents 89c6151 + 6f0f179 commit d666c13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/Apis/Applications/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,23 @@ export const useGetApplicantInfo = (
queryKey: ['getApplicantInfo', applicationQueryString],
queryFn: async () => {
const {
page,
application_status,
student_name,
recruitment_id,
year,
winter_intern,
} = applicationQueryString;
const pageNum = page ? `&page=${page}` : '';
const studentName = student_name
? `&student_name=${student_name}`
: '';
const companyId = recruitment_id
? `&recruitment_id=${recruitment_id}`
: '';
const queryString =
application_status || student_name || recruitment_id || page
application_status || student_name || recruitment_id
? `&application_status=${
application_status ? application_status : ''
}${companyId}${studentName}${pageNum}`
}${companyId}${studentName}`
: '';
const { data } = await instance.get<ApplicationResponse>(
`${router}?year=${year}${queryString}&winter_intern=${winter_intern}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Container = styled.div`

export const TableWrapper = styled.div<{ isRequest: boolean }>`
width: 93.5%;
height: ${({ isRequest }) => (isRequest ? '320px' : '365px')};
min-height: ${({ isRequest }) => (isRequest ? '320px' : '365px')};
display: flex;
flex-direction: column;
justify-content: flex-end;
Expand Down

0 comments on commit d666c13

Please sign in to comment.