Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
♻️ :: recommend argument 변수 이름 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Tmdhoon2 committed Dec 5, 2023
1 parent 061e6f8 commit b3f4304
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ internal fun NavGraphBuilder.mainNavigation(
}

composable(
route = "${NavigationRoute.Main.Recommends}/${NavArgument.RecommendType}",
arguments = listOf(navArgument("recommendType") { NavType.StringType }),
route = "${NavigationRoute.Main.Recommends}/${NavArgument.Category}",
arguments = listOf(navArgument("category") { NavType.StringType }),
) {
val category = it.arguments?.getString("category") ?: Category.MUSIC.toString()
val category = it.arguments?.getString("category")!!

Recommends(
moveToRecommendDetails = moveToRecommendDetails,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@ object NavArgument {
const val Category = "{category}"
const val HospitalId = "{hospitalId}"
const val ReservationId = "{reservationId}"
const val RecommendType = "{recommendType}"
const val RecommendId = "{recommendId}"
}

0 comments on commit b3f4304

Please sign in to comment.