Skip to content

Commit

Permalink
[CHORE] #69-ktlint 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
l5x5l committed Sep 5, 2024
1 parent 39ef0e2 commit 50bf091
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ object PokitDetail {
navArgument(pokitCountQuery) {
nullable = true
type = NavType.StringType
},
}
)
}

Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/pokitmons/pokit/navigation/RootNavHost.kt
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ fun RootNavHost(
viewModel = viewModel,
onNavigateToSearch = { navHostController.navigate(Search.route) },
onNavigateToSetting = { navHostController.navigate(Setting.route) },
onNavigateToPokitDetail = { pokitId, linkCount -> navHostController.navigate("${PokitDetail.route}/$pokitId?${PokitDetail.pokitCountQuery}=$linkCount") },
onNavigateToPokitDetail = { pokitId, linkCount ->
navHostController.navigate(
"${PokitDetail.route}/$pokitId?${PokitDetail.pokitCountQuery}=$linkCount"
)
},
onNavigateAddLink = { navHostController.navigate(AddLink.route) },
onNavigateAddPokit = { navHostController.navigate(AddPokit.route) },
onNavigateToLinkModify = { navHostController.navigate("${AddLink.route}?${AddLink.linkIdArg}=$it") },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class AddPokitViewModel @Inject constructor(
private val _pokitIamges = MutableStateFlow<List<PokitImage>>(emptyList())
val pokitImages: StateFlow<List<PokitImage>> = _pokitIamges.asStateFlow()

private var existingPokitName : String? = null
private var existingPokitName: String? = null

init {
initPokitList()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,5 @@ fun AlarmScreen(
}
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class PokitViewModel @Inject constructor(
private val getPokitCountUseCase: GetPokitCountUseCase,
private val deleteLinkUseCase: DeleteLinkUseCase,
private val setBookmarkUseCase: SetBookmarkUseCase,
private val getLinkUseCase: GetLinkUseCase
private val getLinkUseCase: GetLinkUseCase,
) : ViewModel() {

private val _sideEffect = MutableEventFlow<HomeSideEffect>()
Expand Down Expand Up @@ -356,7 +356,7 @@ class PokitViewModel @Inject constructor(
?.copy(isRead = true) ?: return@launch

linkPaging.modifyItem(isReadChangedLink)
}
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ fun PokitDetailScreenContainer(
hidePokitModifyBottomSheet = viewModel::hidePokitBottomSheet,
showLinkModifyBottomSheet = viewModel::showLinkModifyBottomSheet,
showLinkRemoveBottomSheet = viewModel::showLinkRemoveBottomSheet,
showLinkRemoveBottomSheetWithLink = remember {{ link ->
viewModel.hideLinkDetailBottomSheet()
viewModel.showLinkRemoveBottomSheet(link)
}},
showLinkRemoveBottomSheetWithLink = remember {
{ link ->
viewModel.hideLinkDetailBottomSheet()
viewModel.showLinkRemoveBottomSheet(link)
}
},
hideLinkModifyBottomSheet = viewModel::hideLinkBottomSheet,
hideLinkDetailBottomSheet = viewModel::hideLinkDetailBottomSheet,
state = state,
Expand Down Expand Up @@ -267,7 +269,7 @@ fun PokitDetailScreen(
PokitBottomSheet(
onHideBottomSheet = hidePokitSelectBottomSheet,
show = state.pokitSelectBottomSheetVisible,
skipPartiallyExpanded = false,
skipPartiallyExpanded = false
) {
val lazyColumnListState = rememberLazyListState()
val startPaging = remember {
Expand Down

0 comments on commit 50bf091

Please sign in to comment.