From b892c1ed678e1298cc4a776050d5401ddce8e613 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Mon, 23 Dec 2024 12:15:28 +0900 Subject: [PATCH] =?UTF-8?q?[MOD/#308]=20=EC=A0=95=EB=A0=AC=20=EA=B8=B0?= =?UTF-8?q?=EC=A4=80=20=ED=95=A8=EC=88=98=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/terning/feature/home/HomeRoute.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/feature/home/src/main/java/com/terning/feature/home/HomeRoute.kt b/feature/home/src/main/java/com/terning/feature/home/HomeRoute.kt index 5d099385..eba443d2 100644 --- a/feature/home/src/main/java/com/terning/feature/home/HomeRoute.kt +++ b/feature/home/src/main/java/com/terning/feature/home/HomeRoute.kt @@ -117,6 +117,8 @@ fun HomeRoute( viewModel.navigateCalendar() }, updateRecommendDialogVisibility = viewModel::updateRecommendDialogVisibility, + updateSortingSheetVisibility = viewModel::updateSortingSheetVisibility, + updateSortBy = viewModel::updateSortBy, getHomeUpcomingInternList = viewModel::getHomeUpcomingInternList, getRecommendInternsData = viewModel::getRecommendInternsData, viewModel = viewModel, @@ -130,6 +132,8 @@ fun HomeScreen( navigateToIntern: (Long) -> Unit, navigateToCalendar: () -> Unit, updateRecommendDialogVisibility: (Boolean) -> Unit, + updateSortingSheetVisibility: (Boolean) -> Unit, + updateSortBy: (Int) -> Unit, getHomeUpcomingInternList: () -> Unit, getRecommendInternsData: (Int) -> Unit, viewModel: HomeViewModel, @@ -163,7 +167,7 @@ fun HomeScreen( if (homeState.sortingSheetVisibility) { SortingBottomSheet( onDismiss = { - viewModel.updateSortingSheetVisibility(false) + updateSortingSheetVisibility(false) }, currentSortBy = homeState.sortBy.ordinal, onSortChange = { sortBy -> @@ -177,7 +181,7 @@ fun HomeScreen( else -> "filtered_hits" } ) - viewModel.updateSortBy(sortBy) + updateSortBy(sortBy) } ) } @@ -309,7 +313,7 @@ fun HomeScreen( Spacer(modifier = Modifier.weight(1f)) SortingButton( sortBy = homeState.sortBy.ordinal, - onCLick = { viewModel.updateSortingSheetVisibility(true) }, + onCLick = { updateSortingSheetVisibility(true) }, ) HomeFilteringScreen( onChangeFilterClick = { changeFilteringSheetState = true },