-
Notifications
You must be signed in to change notification settings - Fork 1
✨ feat: Table component 구현 #110
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
Conversation
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
- 추후에 api 파일 등에서 import로 변경 예정
- application 배열 길이가 항상 5이도록 변경
- initialApplications prop 말고 applications 변수에서 null 허용
- datas는 보여줄 정보 배열
- table의 머리글 행에 해당
- 현재 페이지 사이즈가 모바일인지 아닌지를 확인하는 state
상태를 나타내는 부분의 코드를 컴포넌트로 분리
Closed
6 tasks
Yun-Jinwoo
approved these changes
Jun 19, 2025
Collaborator
Yun-Jinwoo
left a comment
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.
좋습니다~!👍
minimo-9
approved these changes
Jun 19, 2025
Collaborator
minimo-9
left a comment
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.
잘 하셨습니다! 나중에 리팩토링을 할 때 멘토님 얘기대로 피드백 들은 부분만 변경하면 더 좋을 것 같습니다!
Contributor
Author
|
일단 merge 하고 오류 생기면 수정하는 방향으로 가겠습니다~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📌 변경 사항 개요
Table component를 구현하였습니다.
📝 상세 내용
Table component
modeprop은notice혹은user문자열 값을 받습니다.notice는 공고에 대한 지원 목록,user는 유저가 지원한 공고 목록을 보여줍니다.modeprop이notice일 경우shopId와noticeIdprop을 필요로 하고,modeprop이user일 경우userIdprop을 필요로 합니다.modeprop이notice일 경우,data[n]배열의 5번째 요소로 applicationId가 들어갑니다.user일 때는 4개까지 입니다.classNameprop으로 너비/포지션 정도의 간단한 스타일을 부여할 수 있습니다.TableStatus component
statusprop을 받아 status(상태)에 맞는 태그를 보여줍니다.TableButtons component
shopId,noticeId,applicaitonIdprops는 api 요청을 보내는데에 사용됩니다.🔗 관련 이슈
Resolves: #46
🖼️ 스크린샷(선택사항)
💡 참고 사항
TableButtons가 전혀 테스트 되지 않아 정상적으로 작동하는지 모릅니다. 일단 로직은 승인/거절예모달 버튼을 누르면 일단 상태(status)를 바꾼 후, request가 실패한다면 다시 pending 상태 (버튼 상태)로 돌아오는 로직입니다. request 처리 중에는 disabled 처리를 할까 하다 그냥 위 방식으로 구현하였는데 다른 의견이 있으시다면 말씀해주세요~