-
Notifications
You must be signed in to change notification settings - Fork 72
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
[후원사] 2024 후원사 데이터 반영 #277
Conversation
Test Results18 tests 18 ✅ 5s ⏱️ Results for commit 77e20c5. ♻️ This comment has been updated with latest results. |
sponsors | ||
.groupBy { it.grade } | ||
.toSortedMap(compareBy { it.priority }) | ||
.values | ||
.forEachIndexed { index, groupedSponsorsByGrade -> | ||
SponsorGroupRow( | ||
modifier = Modifier | ||
.wrapContentWidth() | ||
.padding( | ||
start = if (index % 2 == 0) 0.dp else 36.dp, | ||
end = if (index % 2 == 0) 36.dp else 0.dp, | ||
), | ||
sponsors = groupedSponsorsByGrade | ||
) | ||
} |
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.
UI 에서는 후원사 등급을 몰라도 되도록 수정했어요.
.groupBy { it.grade } | ||
.toSortedMap(compareBy { it.priority }) | ||
.values | ||
.forEachIndexed { index, groupedSponsorsByGrade -> |
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.
이렇게하면 리컴포지션 탈때마다 새로운 리스트를 다시 계산하게됩니다.
ViewModel에서 처리하도록 변경해주세요.
View에는 최종 데이터만 있으면 됩니다.
머지합니다. |
Issue
Overview (Required)