Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

지원서보기 수정 #87

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading