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 컴포넌트 구현 #25

Merged
merged 33 commits into from
Jul 7, 2024
Merged

Conversation

2hyunjinn
Copy link
Contributor

Related issue 🛠

Work Description ✏️

  • 버튼 컴포넌트 제작

Screenshot 📸

image
image
image
image
image
image
image
image
image
image
image
image
image
image

Uncompleted Tasks 😅

  • 없습니당

To Reviewers 📢

@2hyunjinn 2hyunjinn added this to the [APPJAM] 컴포넌트 구현 milestone Jul 6, 2024
@2hyunjinn 2hyunjinn self-assigned this Jul 6, 2024
@2hyunjinn 2hyunjinn requested a review from a team as a code owner July 6, 2024 14:58
@2hyunjinn 2hyunjinn linked an issue Jul 6, 2024 that may be closed by this pull request
18 tasks
@2hyunjinn 2hyunjinn changed the title Feat button component [feat] button component 구현 Jul 6, 2024
@2hyunjinn 2hyunjinn changed the title [feat] button component 구현 [feat] button 컴포넌트 구현 Jul 6, 2024
Copy link
Contributor

@jihyunniiii jihyunniiii left a comment

Choose a reason for hiding this comment

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

미리 말씀을 못 드려서 죄송합니다,,
버튼이 동작하는 기능들은 모두 같으니 해당 동작을 수행하는 BaseButton을 하나 만든 뒤 이를 이용하여 나머지 버튼들을 구현하면 조금 더 효율적인 코드가 될 것 같아요! modifier, shape, enabled, 그리고 활성화와 비활성화일 때 background 색상, onClick 메소드, content 를 인자로 받아오면 좋을 것 같습니다 (추가적으로 공통으로 빼면 좋겠다고 생각하는 부분이 있으면 말해주세요!)
혹시 이해가 안 되신다면 바로 말씀해 주시고 모르겠으면 저랑 이따 같이 해봐용
수고하셨습니다 ~

추가로 중복되는 부분이 많아 위에만 리뷰 달아두었어요 전체적으로 고쳐주세용

Comment on lines 35 to 40
Text(
text = "불러오기",
style = DateRoadTheme.typography.bodyMed13,
color = contentColor,
modifier = Modifier.align(Alignment.CenterVertically)
)
Copy link
Member

Choose a reason for hiding this comment

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

string 추출 안해줘도 될까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

string 추출 안해줘도 될까요?

이 부분은 제가 설정하는게 아니라, 따로 받아오는 거라 안했습니다!

horizontalArrangement = Arrangement.Center
) {
Text(
text = "데이트 코스 올리고 50P 받기",
Copy link
Member

Choose a reason for hiding this comment

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

엄마가 string 추출하라 할 듯!

@2hyunjinn 2hyunjinn changed the title [feat] button 컴포넌트 구현 [feat] Button 컴포넌트 구현 Jul 7, 2024
Copy link
Contributor

@jihyunniiii jihyunniiii left a comment

Choose a reason for hiding this comment

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

너무 야무지게 잘 했는데용?? 이것만 수정해주세용 ~

@2hyunjinn 2hyunjinn merged commit bc94e4b into develop Jul 7, 2024
1 check passed
@2hyunjinn 2hyunjinn deleted the feat-button-component branch July 7, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[feat] Button 컴포넌트
3 participants