-
Notifications
You must be signed in to change notification settings - Fork 1
[FEAT] 면접 진행 여부에 따른 지원자 목록 컬럼 조건부 노출 (#420) #423
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f5da869
refactor: ApplicantData 타입에서 interviewSchedule 제거
kanghaeun aa8fd3c
refactor: interviewSchedule 제거 및 confirmedTime 타입 null 추가
kanghaeun c65faf1
feat: interviewRequired 필드 추가
kanghaeun ff2ba1e
feat: 훅에 interviewRequired, interviewSchedule 필드 추가
kanghaeun e7414d8
feat: 면접 시간 모달 추가
kanghaeun 4054be3
feat: interviewSchedule 및 interviewInfo 필드 추가로 면접 시간 내용 추가
kanghaeun 6539b1e
feat: 지원자 목록에 면접 시간 조건부 렌더링 및 스타일 수정
kanghaeun cde31bc
refactor: applicants 타입에서 confirmedTime 및 interviewInfo 필드 제거
kanghaeun ceb3763
refactor: 기본 컬럼 문자열에 인터뷰 컬럼을 조건부로 추가하는 방식으로 리팩토링
kanghaeun 781dff7
refactor: useMemo 훅을 사용하여 interviewRequired 값이 변경될 때만 categories 배열이 …
kanghaeun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -16,19 +16,8 @@ type Props = { | |||||||||||||||||
| stage: ApplicationStage; | ||||||||||||||||||
| }; | ||||||||||||||||||
|
|
||||||||||||||||||
| const INFO_CATEGORY: ApplicateInfoCategory[] = [ | ||||||||||||||||||
| '이름', | ||||||||||||||||||
| '학번', | ||||||||||||||||||
| '학과', | ||||||||||||||||||
| '전화번호', | ||||||||||||||||||
| '이메일', | ||||||||||||||||||
| '결과', | ||||||||||||||||||
| '면접 시간', | ||||||||||||||||||
| ]; | ||||||||||||||||||
|
|
||||||||||||||||||
| export const ApplicantList = ({ filterOption, stage }: Props) => { | ||||||||||||||||||
| const { clubId } = useParams(); | ||||||||||||||||||
|
|
||||||||||||||||||
| const navigate = useNavigate(); | ||||||||||||||||||
|
|
||||||||||||||||||
| const apiStage = STAGE_LABEL[stage]; | ||||||||||||||||||
|
|
@@ -37,8 +26,15 @@ export const ApplicantList = ({ filterOption, stage }: Props) => { | |||||||||||||||||
| data: applicants, | ||||||||||||||||||
| isLoading, | ||||||||||||||||||
| error, | ||||||||||||||||||
| interviewSchedule, | ||||||||||||||||||
| interviewRequired, | ||||||||||||||||||
| } = useApplicants(Number(clubId), apiStage, filterOption); | ||||||||||||||||||
|
|
||||||||||||||||||
| const categories = () => { | ||||||||||||||||||
| const base: ApplicateInfoCategory[] = ['이름', '학번', '학과', '전화번호', '이메일', '결과']; | ||||||||||||||||||
| return interviewRequired ? [...base, '면접 시간'] : base; | ||||||||||||||||||
| }; | ||||||||||||||||||
|
||||||||||||||||||
| const categories = () => { | |
| const base: ApplicateInfoCategory[] = ['이름', '학번', '학과', '전화번호', '이메일', '결과']; | |
| return interviewRequired ? [...base, '면접 시간'] : base; | |
| }; | |
| const categories = useMemo(() => { | |
| const base: ApplicateInfoCategory[] = ['이름', '학번', '학과', '전화번호', '이메일', '결과']; | |
| return interviewRequired ? [...base, '면접 시간'] : base; | |
| }, [interviewRequired]); |
60 changes: 38 additions & 22 deletions
60
...oard/components/ApplicantListSection/List/ApplicantListItem/InterviewTimeContentModal.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grid-template-columns를 설정하는 로직이 여러 미디어 쿼리에서 반복되고 있습니다. 이로 인해 코드가 장황해지고 유지보수가 어려워질 수 있습니다. 기본 컬럼 문자열에 인터뷰 컬럼을 조건부로 추가하는 방식으로 리팩토링하면 코드를 더 간결하고 명확하게 만들 수 있습니다. 아래 제안을 이 파일의 다른 미디어 쿼리들과src/pages/admin/Dashboard/components/ApplicantListSection/List/ApplicantListItem/index.styled.ts파일에도 동일하게 적용하는 것을 고려해보세요.