Skip to content

Commit

Permalink
[FEATURE] #81 : 설문 -> 로그인 화면 전환 로직 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Jan 5, 2024
1 parent 1d2144a commit 124f76b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/wap/wapp/navigation/WappNavHost.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ fun WappNavHost(
surveyNavGraph(
navigateToSurvey = navController::navigateToSurvey,
navigateToSurveyAnswer = navController::navigateToSurveyAnswer,
navigateToSignIn = navController::navigateToSignIn,
)
surveyCheckScreen(
navigateToManagement = navController::navigateToManagement,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ fun NavController.navigateToSurveyAnswer(eventId: String, navOptions: NavOptions
fun NavGraphBuilder.surveyNavGraph(
navigateToSurveyAnswer: (String) -> Unit,
navigateToSurvey: () -> Unit,
navigateToSignIn: () -> Unit,
) {
composable(route = SurveyRoute.route) {
SurveyScreen(
viewModel = hiltViewModel(),
navigateToSignIn = navigateToSignIn,
navigateToSurveyAnswer = { eventId ->
navigateToSurveyAnswer(eventId)
},
Expand Down

0 comments on commit 124f76b

Please sign in to comment.