Skip to content

Commit 443b720

Browse files
committed
Fix: 추천 루틴 등록 시 루틴 id 타입 변경
- Int -> String
1 parent d8872c2 commit 443b720

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

presentation/src/main/java/com/threegap/bitnagil/presentation/recommendroutine/RecommendRoutineScreen.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import com.threegap.bitnagil.presentation.recommendroutine.model.RecommendRoutin
4141
fun RecommendRoutineScreenContainer(
4242
viewmodel: RecommendRoutineViewModel = hiltViewModel(),
4343
navigateToEmotion: () -> Unit,
44-
navigateToRegisterRoutine: (Int?) -> Unit,
44+
navigateToRegisterRoutine: (String?) -> Unit,
4545
) {
4646
val uiState by viewmodel.container.stateFlow.collectAsStateWithLifecycle()
4747

@@ -76,7 +76,7 @@ private fun RecommendRoutineScreen(
7676
onCategorySelected: (RecommendCategory) -> Unit,
7777
onShowDifficultyBottomSheet: () -> Unit,
7878
onRecommendRoutineByEmotionClick: () -> Unit,
79-
onRegisterRoutineClick: (Int) -> Unit,
79+
onRegisterRoutineClick: (String) -> Unit,
8080
) {
8181
Column(
8282
modifier = Modifier
@@ -168,7 +168,7 @@ private fun RecommendRoutineScreen(
168168
RecommendRoutineItem(
169169
routineName = routine.name,
170170
routineDescription = routine.description,
171-
onAddRoutineClick = { onRegisterRoutineClick(routine.id) },
171+
onAddRoutineClick = { onRegisterRoutineClick(routine.id.toString()) },
172172
)
173173
}
174174
}

0 commit comments

Comments
 (0)