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

[feat] Button 컴포넌트 구현 #19

Merged
merged 10 commits into from
Jan 15, 2025
Merged

[feat] Button 컴포넌트 구현 #19

merged 10 commits into from
Jan 15, 2025

Conversation

kamja0510
Copy link
Contributor

Related issue 🛠

Work Description ✏️

  • 공통 컴포넌트 button 구현

Screenshot 📸

default.mp4

Uncompleted Tasks 😅

  • 클릭 시 효과 커스텀

To Reviewers 📢

일단 구조에대해서 리뷰를 좀 받고 다시 해야할 것 같습니다.
혼자 고민을 해봤는데 너무 오래걸렸고 확장성 측면에서 하나도 고려되지 않은 느낌이라 도움을 받고 싶습니다.

@kamja0510 kamja0510 added this to the 전체 컴포넌트 구현 milestone Jan 12, 2025
@kamja0510 kamja0510 self-assigned this Jan 12, 2025
@kamja0510 kamja0510 requested a review from a team as a code owner January 12, 2025 23:35
@kamja0510 kamja0510 requested review from HAJIEUN02 and beom84 January 12, 2025 23:36
@HAJIEUN02 HAJIEUN02 changed the title [Feat] component button 구현 [Feat] Button 컴포넌트 구현 Jan 13, 2025
@HAJIEUN02
Copy link
Collaborator

HAJIEUN02 commented Jan 13, 2025

p3 쓱 보고 일단 남겨둡니다!
저라면 Slot을 이용해 kakaobutton / SolidButtton/ OutlinedButton을 각각 컴포넌트로 만들 것 같아요.
그 다음에 pressed 이런 클릭 여부를 State로 각각의 버튼 컴포넌트에 넘겨서 조절해주는 걸루용

Copy link
Contributor

@beom84 beom84 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

Copy link
Collaborator

@HAJIEUN02 HAJIEUN02 left a comment

Choose a reason for hiding this comment

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

수정 후 다시 확인하겠습니당! 분리해주시면! 다른 건 다 조아요
버튼이 안 쓰이는 것들이 있긴 하지만 뎁스가 좀 있어서 확장성 고려하면 수정해주시는게 좋을 것 같아용

vertical = bbangZipButtonSize.verticalPadding,
),
leadingIcon = {
if (leadingIcon != null) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

p5 Base를 하나 만들어두고, SolidButton Outlined Button 이런 식으로 구성하면 안 들어오면 렌더링 자체가 되지 않으니 leadingIcon이나 trailingIcon이 null인 경우를 처리해줄 필요가 업서요! 이런 식으로 분리하는 방법도 있음을 알아주셔라

Copy link
Contributor Author

Choose a reason for hiding this comment

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

죄송합니다 모르겠습니다 ㅠㅠㅠ

# Conflicts:
#	app/src/main/res/values/strings.xml
Copy link
Collaborator

@HAJIEUN02 HAJIEUN02 left a comment

Choose a reason for hiding this comment

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

LGTM

@kamja0510 kamja0510 merged commit 78ca9cc into develop Jan 15, 2025
1 check passed
@kamja0510 kamja0510 changed the title [Feat] Button 컴포넌트 구현 [feat] Button 컴포넌트 구현 Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 공통 컴포넌트 Button 구현
4 participants