-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat: 케로셀 구현 외 #139
Merged
Merged
Feat: 케로셀 구현 외 #139
Conversation
This file contains 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
1. 시작가에 원원이라고 표기되는 오류 수정 2. 판매자가 경매 상세페이지에 들어갈 경우 메뉴 버튼이 보이는 버그 수정
1. useConvertToAuction 쿼리에서 auction list도 무효화 하도록 변경 2.useLikeAuctionItem 쿼리에서 사전 경매에서 하트를 누른 리스트를 무효화 하도록 변경 3. useDeletePreAuction 쿼리에서 실행 시 사전 경매 리스크를 무효화하도록 변경 4. auction list의 오탈자 수정
1. 상세 조회 / 사전 경매 상세 조회의 api가 달라 데이터 파싱 hooks 생성 2. images가 단순 배열인 경우 key에 idx+1의 값, imageUrl에 url을 담아서 return 3. images가 Object일 경우 image.imageUrl을 파싱하여 imageUrl에 담아 전송
1. useImageUrls hook을 통해 return된 데이터를 담을 ImageItem 컴포넌트 생성 2. img를 불러오는데 실패했을 경우를 대시해서 alt에 productName 삽입
1. 케로셀을 랜더링할 ImageList 컴포넌트 생성 2. useImageUrls hook을 사용하여 AuctionDetail/PreAuctionDetail 모두 동일한 방법으로 사용 가능하게 설계 3. key값 중복을 방지하고자 productId{id번호}_{img.key}값으로 설정
1. AuctionDetail / PreAuctionDetail 페이지에서 ImageList 도입하여 케로셀 구현
1. 이미지 정보가 Object로 넘어올 경우 key 값에 imageId를 할당하도록 수정
1. useImageUrls에서 obejct 타입 데이터를 받을 시 key값이 존재하지 않을 경우 idx+1 값을 사용하도록 수정 2. 기타 오타 수정
CLOUDoort
reviewed
Oct 15, 2024
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.
확인했습니다.
ImageItem에 CarouselItem이 이미 존재하여 ImageList의 CarouselItem 제거
aquaman122
approved these changes
Oct 15, 2024
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.
확인했습니다!👍
CLOUDoort
approved these changes
Oct 15, 2024
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.
💡 작업 내용
💡 자세한 설명
[Carousel 구현]
[queries]
📗 참고 자료 (선택)
📢 리뷰 요구 사항 (선택)
🚩 후속 작업 (선택)
✅ 셀프 체크리스트
closes #이슈번호