Skip to content

Commit

Permalink
Merge pull request #170 from WithPeace/feat/#169-찜한_목록_화면_개선
Browse files Browse the repository at this point in the history
feat: 찜한 목록 화면 하단바 제거
  • Loading branch information
rhkrwngud445 authored Aug 13, 2024
2 parents 83a00d2 + f189f5d commit b85cd48
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions app/src/main/java/com/withpeace/withpeace/navigation/NavHost.kt
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,7 @@ fun WithpeaceNavHost(
SnackbarType.Navigator(
actionName = "목록 보러가기",
action = {
navController.navigatePolicyBookmarks( navOptions = navOptions {
popUpTo(HOME_ROUTE) {
saveState = true
}
launchSingleTop = true
restoreState = true
})
navController.navigatePolicyBookmarks()
},
),
),
Expand Down Expand Up @@ -285,20 +279,19 @@ fun WithpeaceNavHost(

},
)
policyBookmarksNavGraph(
onShowSnackBar = { onShowSnackBar(SnackbarState(it)) },
onClickBackButton = {
navController.popBackStack()
},
onPolicyClick = {
navController.navigateToPolicyDetail(policyId = it)
},
onDisablePolicyClick = {
navController.navigateDisabledPolicy(policyId = it)
},
)

}
policyBookmarksNavGraph(
onShowSnackBar = { onShowSnackBar(SnackbarState(it)) },
onClickBackButton = {
navController.popBackStack()
},
onPolicyClick = {
navController.navigateToPolicyDetail(policyId = it)
},
onDisablePolicyClick = {
navController.navigateDisabledPolicy(policyId = it)
},
)
postDetailGraph(
onShowSnackBar = { onShowSnackBar(SnackbarState(it)) },
onClickBackButton = navController::popBackStack,
Expand Down

0 comments on commit b85cd48

Please sign in to comment.