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

Feature/chips label component #41

Merged
merged 19 commits into from
Dec 5, 2023
Merged

Conversation

BEEEAM-J
Copy link
Member

@BEEEAM-J BEEEAM-J commented Dec 4, 2023

📌 PR 요약

🌱 작업한 내용

  • Chips 관련 Component 구현

🌱 PR 포인트

  • Contained Chip은 인자로 타입을 받고 클릭이 되었을 경우 타입에 맞는 색으로 변경하도록 구현했습니다.
SuwikiContainedChip(SuwikiLabelType.ORANGE, "label")
SuwikiContainedChip(SuwikiLabelType.BLUE, "label")
SuwikiContainedChip(SuwikiLabelType.GREEN, "label")

📸 스크린샷

스크린샷
Chip Component Test

📮 관련 이슈

@BEEEAM-J BEEEAM-J requested review from jinukeu and lsakee December 4, 2023 09:55
@BEEEAM-J BEEEAM-J self-assigned this Dec 4, 2023
Copy link
Member

@jinukeu jinukeu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 디자인 굉장히 깔쌈하게 구현하신거같아요! 👍 👍
다만, stateless로 만드는게 더 좋아보이는데 stateful한 컴포넌트가 보입니다.
추가로 자잘한 수정사항 반영 부탁드릴게요~

@jinukeu
Copy link
Member

jinukeu commented Dec 4, 2023

|스크린샷|
|:--:|
|![Chip Component Test](https://github.com/uswLectureEvaluation/Android/assets/107917980/fcaf79d7-b8c6-4600-ad8e-e3a68ac47cc6)|

또 스크린샷 이렇게 감싸면 표 안에 넣을 수 있어요!

@BEEEAM-J
Copy link
Member Author

BEEEAM-J commented Dec 5, 2023

코멘트 전부 반영하였습니다!

@BEEEAM-J
Copy link
Member Author

BEEEAM-J commented Dec 5, 2023

코멘트 전부 반영했습니다~!

Comment on lines 27 to 31
painter = if (isChecked) {
painterResource(id = R.drawable.ic_color_checked_chip)
} else {
painterResource(id = R.drawable.ic_color_chip)
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

painter = painterResource(id = if(isChecked) R.drawable.ic_color_checked_chip else R.drawable.ic_color_chip),

요렇게 안에 넣는거 안되나요!?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

잘 됩니다! 안에 넣으니까 보기 더 편한 거 같네요
가독성 더 신경 쓰면서 코드 짜겠습니다 ㅠㅠ

Copy link
Member

@jinukeu jinukeu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 고생 많으셨어요!

@BEEEAM-J BEEEAM-J merged commit efce6ab into develop Dec 5, 2023
1 check passed
@jinukeu jinukeu deleted the refactor/DesignSystem-ChipsAndLabel branch December 20, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] Chips & Label Component
2 participants