Skip to content

Commit

Permalink
[refactor] : MyProfile clubPainter 추가로 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ham2174 committed Feb 13, 2024
1 parent d18d788 commit 2ffa494
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
import com.moya.funch.common.clubPainter
import com.moya.funch.common.jobPainter
import com.moya.funch.common.subwayLinePainter
import com.moya.funch.component.FunchChip
Expand Down Expand Up @@ -128,9 +129,8 @@ private fun UsersDistinct(profile: Profile) {
) {
labelValues.forEach { value ->
val leadingIcon = when (profileLabel) {
ProfileLabel.JOB, ProfileLabel.CLUB ->
jobPainter(value)

ProfileLabel.JOB -> jobPainter(value)
ProfileLabel.CLUB -> clubPainter(value)
else -> null
}
val trailingIcon = when (profileLabel) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const val PROFILE_GRAPH_ROUTE = "profile_graph"
fun NavController.navigateToMyProfile(navOptions: NavOptions? = null) =
navigate(ProfileScreens.MyProfile.route, navOptions)

fun NavController.closeMyProfile() = popBackStack() // 텍스트 필드의 값을 남기기 위해 사용
fun NavController.closeMyProfile() = popBackStack()

fun NavGraphBuilder.profileGraph(onNavigateToHome: () -> Unit, onCloseMyProfile: () -> Unit) {
navigation(
Expand Down

0 comments on commit 2ffa494

Please sign in to comment.