diff --git a/feature/src/main/java/com/terning/feature/filtering/filteringone/navigation/FilteringOneNavigation.kt b/feature/src/main/java/com/terning/feature/filtering/filteringone/navigation/FilteringOneNavigation.kt index e80b3fbeb..d771d018f 100644 --- a/feature/src/main/java/com/terning/feature/filtering/filteringone/navigation/FilteringOneNavigation.kt +++ b/feature/src/main/java/com/terning/feature/filtering/filteringone/navigation/FilteringOneNavigation.kt @@ -30,8 +30,8 @@ fun NavGraphBuilder.filteringOneNavGraph( FilteringOneRoute( paddingValues = paddingValues, name = args.name, - onNextClick = { grade -> navHostController.navigateFilteringTwo(grade) }, - navigateUp = { navHostController.navigateUp() } + onNextClick = navHostController::navigateFilteringTwo, + navigateUp = navHostController::navigateUp ) } } diff --git a/feature/src/main/java/com/terning/feature/filtering/filteringthree/FilteringThreeRoute.kt b/feature/src/main/java/com/terning/feature/filtering/filteringthree/FilteringThreeRoute.kt index 8bdc9d4e0..09ef94e01 100644 --- a/feature/src/main/java/com/terning/feature/filtering/filteringthree/FilteringThreeRoute.kt +++ b/feature/src/main/java/com/terning/feature/filtering/filteringthree/FilteringThreeRoute.kt @@ -80,8 +80,8 @@ fun FilteringThreeRoute( chosenYear = Calendar.getInstance().currentYear, chosenMonth = Calendar.getInstance().currentMonth, onNextClick = viewModel::postFilteringWithServer, - onYearChosen = { viewModel.updateStartYear(it) }, - onMonthChosen = { viewModel.updateStartMonth(it) } + onYearChosen = viewModel::updateStartYear, + onMonthChosen = viewModel::updateStartMonth ) }