Skip to content

Commit

Permalink
Rename to onClickTimetableItemBookmark
Browse files Browse the repository at this point in the history
  • Loading branch information
chigichan24 committed Aug 16, 2023
1 parent 9e9edbb commit 2788b33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fun SearchScreen(
onFilterCategoryChipClicked = viewModel::onFilterCategoryChipClicked,
onCategoriesSelected = viewModel::onCategoriesSelected,
onTimetableItemClick = onTimetableItemClick,
onBookmarkClick = viewModel::updateBookmark,
onBookmarkClick = viewModel::onClickTimetableItemBookmark,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class SearchScreenViewModel @Inject constructor(
)
}

fun updateBookmark(timetableItem: TimetableItem) {
fun onClickTimetableItemBookmark(timetableItem: TimetableItem) {
viewModelScope.launch {
sessionsRepository.toggleBookmark(timetableItem.id)
}
Expand Down

0 comments on commit 2788b33

Please sign in to comment.