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

Composable 재사용 #329

Merged
merged 34 commits into from
Apr 6, 2024
Merged

Composable 재사용 #329

merged 34 commits into from
Apr 6, 2024

Conversation

hegleB
Copy link
Member

@hegleB hegleB commented Mar 28, 2024

관련 이슈

작업한 내용

  • 자주 사용되는 Composable 또는 앞으로 계속 사용되어지는 Composable을 위한 리팩토링

hegleB and others added 30 commits January 24, 2024 23:52
@hegleB hegleB added 📱AOS 안드로이드 작업 💪Refactor 코드 리팩토링 labels Mar 28, 2024
@hegleB hegleB self-assigned this Mar 28, 2024
@hegleB hegleB marked this pull request as ready for review March 28, 2024 04:17
Comment on lines +12 to +27
fun BackIconButton(
modifier: Modifier = Modifier,
onClick: () -> Unit,
iconColor: Color = Color.Black,
) {
IconButton(
modifier = modifier,
onClick = onClick,
) {
Icon(
painter = painterResource(id = R.drawable.ic_back),
contentDescription = null,
tint = iconColor,
)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

버튼을 따로 component로 만들어서 재사용할 수있는건 좋은거 같아요!
그렇다면 Icon의 painter부분도 인자로 받아서, 하는건 어떨까요??
다른 FloatingAction 버튼도용

Copy link
Member

Choose a reason for hiding this comment

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

그렇게 된다면 더 활용할 수 있는 영역이 넓어질거같아요!

Copy link
Member Author

Choose a reason for hiding this comment

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

각 버튼의 기능을 명확하게 구분하고 가독성면에서도 더 좋다고 생각해서 저렇게 했습니다.

@jaehan4707
Copy link
Member

ktlint는 이제 빼야할거 같긴 하네요 ㅠ

Copy link
Collaborator

@yang1318 yang1318 left a comment

Choose a reason for hiding this comment

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

옹..! MSButtion, MSFloatingButton, MSIconButton, MSPreview가 새로 생겼군요..!
확실이 이렇게 컴포넌트가 정해져있는게 디자인 면에서 통일성이 좋을 것 같아요.
컴포즈 좋네요!!

Copy link
Collaborator

@yang1318 yang1318 left a comment

Choose a reason for hiding this comment

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

그런데 혹시 whatsnew-ko-KR 파일과 buildgradle 파일도 바꼈는데, 이부분은 왜 바뀌었는지 궁금해요!

@hegleB
Copy link
Member Author

hegleB commented Mar 29, 2024

서버 변경으로 핫픽스 과정에서 포함된거 같네요. 수정하도록 하겠습니다.

@jaehan4707 jaehan4707 merged commit 1bf0d88 into AOS-develop Apr 6, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📱AOS 안드로이드 작업 💪Refactor 코드 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants