-
Notifications
You must be signed in to change notification settings - Fork 2
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/#86] CardList 컴포넌트 구현 #92
Conversation
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.
복잡해보이는데 뚝딱 너무 잘하셨네요.. 😮 수고하셨습니다 👏
const cardListCountText = { | ||
store: ` 개의 스토어`, | ||
design: ` 개의 디자인`, | ||
likedStore: `찜한 스토어 `, | ||
likedDesign: `찜한 스토어의 디자인 `, | ||
}; |
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.
이렇게 따로 지정해준 거 좋네요.. 짱 👍
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.
역시 최고입니닷..! 넘 고생하셨습니다~~ :)
} | ||
|
||
const CardList = ({ item, data }: CardListProps) => { | ||
const [, setOption] = useState(''); //option은 나중에 데이터 불러올 때 사용될 예정 |
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.
콤마 setOption에서 ','는 무엇을 의미하나요??
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.
굿굿 너무 잘 만들었어요!! 꼼꼼대마왕~👿
📌 관련 이슈번호
체크리스트
✅ Key Changes
카드 개수, 필터링 버튼, 디자인카드 / 스토어 카드가 함께 있는
CardList
컴포넌트를 만들었습니다.하나의 컴포넌트에서 디자인 / 스토어 부분을 다 보여줘야 해서 타입 단언 등 타입 관련된 처리가 많습니다 .. 🥲
numberLabel
받을 수 있도록 수정메인 페이지에서 DesignCard에서 Image에 numberLabel이 있는 상태로 있길래,
DesignCard에서 numberLabel을 받을 수 있도록 해뒀습니다!
이제 메인페이지에서도 DesignCard를 사용할 수 있게 되었어요 ~! 😝
FilteringButton
zIndex
,backgroundColor
수정CardList를 구현하다보니, FilteringButton의 ul 부분에 zIndex와 backgroundColor가 있어야 확실하게 보이는 걸 깨닫고,
해당 부분 추가로 지정해줬습니다!
StoreCard, Image 컴포넌트 수정
이전에 StoreCard의 사진 바닥부분이 잘리는 문제를 Image 컴포넌트에 height 100% 걸로 해결했었는데,
이걸 지우고 StoreCard 부분을 화랑오빠가 수정하는 방향으로 해결했습니다!
레전드 리드 ㄷㄷ
감사합니다.📢 To Reviewers
📸 스크린샷 or 실행영상