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

Commit

Permalink
๐Ÿ”€ :: (#150) ์ถ”์ฒœ ์นดํ…Œ๊ณ ๋ฆฌ ๋กœ์ง ๋ฒ„๊ทธ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
๐Ÿ”€ :: (#150) ์ถ”์ฒœ ์นดํ…Œ๊ณ ๋ฆฌ ๋กœ์ง ๋ฒ„๊ทธ ์ˆ˜์ •
  • Loading branch information
Tmdhoon2 authored Dec 5, 2023
2 parents 5217a0f + 654c972 commit a7a235e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private val strings = listOf(
R.string.recommend_music,
R.string.recommend_exercise,
R.string.recommend_video,
R.string.recommend_hospital,
R.string.recommend_hobby,
)

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ internal fun Recommends(
Category.MUSIC -> stringResource(id = R.string.recommend_music)
Category.SPORT -> stringResource(id = R.string.recommend_exercise)
Category.VIDEO -> stringResource(id = R.string.recommend_video)
Category.HOBBY -> stringResource(id = R.string.recommend_hospital)
Category.HOBBY -> stringResource(id = R.string.recommend_hobby)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,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 @@ -46,6 +46,5 @@ object NavArgument {
const val Category = "{category}"
const val HospitalId = "{hospitalId}"
const val ReservationId = "{reservationId}"
const val RecommendType = "{recommendType}"
const val RecommendId = "{recommendId}"
}
2 changes: 1 addition & 1 deletion presentation/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
<string name="recommend_music">์Œ์•… ๊ฐ์ƒํ•˜๊ธฐ</string>
<string name="recommend_exercise">์šด๋™ํ•˜๊ธฐ</string>
<string name="recommend_video">์˜์ƒ ์‹œ์ฒญํ•˜๊ธฐ</string>
<string name="recommend_hospital">๋ณ‘์› ๋‚ด์›ํ•˜๊ธฐ</string>
<string name="recommend_hobby">์ทจ๋ฏธ ๊ฐ€์ ธ๋ณด๊ธฐ</string>

<string name="recommend_categories">์นดํ…Œ๊ณ ๋ฆฌ๋ณ„ ์ปจํ…์ธ </string>

Expand Down

0 comments on commit a7a235e

Please sign in to comment.