Skip to content

Commit

Permalink
[FEATURE] #93 : 관리 탭에서 설문 클릭시 / 작성된 설문 -> 설문형식 수정 으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Jan 9, 2024
1 parent 5ff4718 commit e082dd5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions app/src/main/java/com/wap/wapp/navigation/WappNavHost.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ import com.wap.wapp.feature.management.navigation.managementScreen
import com.wap.wapp.feature.management.navigation.navigateToManagement
import com.wap.wapp.feature.management.registration.event.navigation.eventRegistrationScreen
import com.wap.wapp.feature.management.registration.event.navigation.navigateToEventRegistration
import com.wap.wapp.feature.management.survey.registration.navigation.navigateToSurveyRegistration
import com.wap.wapp.feature.management.survey.registration.navigation.surveyRegistrationScreen
import com.wap.wapp.feature.management.survey.navigation.navigateToSurveyFormEdit
import com.wap.wapp.feature.management.survey.navigation.navigateToSurveyFormRegistration
import com.wap.wapp.feature.management.survey.navigation.managementSurveyNavGraph
import com.wap.wapp.feature.notice.navigation.navigateToNotice
import com.wap.wapp.feature.notice.navigation.noticeScreen
import com.wap.wapp.feature.profile.navigation.navigateToProfile
Expand All @@ -30,7 +31,6 @@ import com.wap.wapp.feature.profile.profilesetting.navigation.profileSettingNavi
import com.wap.wapp.feature.profile.profilesetting.navigation.profileSettingScreen
import com.wap.wapp.feature.splash.navigation.splashNavigationRoute
import com.wap.wapp.feature.splash.navigation.splashScreen
import com.wap.wapp.feature.survey.check.navigation.navigateToSurveyCheck
import com.wap.wapp.feature.survey.check.navigation.surveyCheckScreen
import com.wap.wapp.feature.survey.navigation.navigateToSurvey
import com.wap.wapp.feature.survey.navigation.navigateToSurveyAnswer
Expand Down Expand Up @@ -75,7 +75,7 @@ fun WappNavHost(
surveyCheckScreen(
navigateToManagement = navController::navigateToManagement,
)
surveyRegistrationScreen(
managementSurveyNavGraph(
navigateToManagement = navController::navigateToManagement,
)
eventRegistrationScreen(
Expand Down Expand Up @@ -104,10 +104,10 @@ fun WappNavHost(
},
)
managementScreen(
navigateToSurveyRegistration = navController::navigateToSurveyRegistration,
navigateToSurveyRegistration = navController::navigateToSurveyFormRegistration,
navigateToEventRegistration = navController::navigateToEventRegistration,
navigateToEventEdit = navController::navigateToEventEdit,
navigateToSurveyCheck = navController::navigateToSurveyCheck,
navigateToSurveyFormEdit = navController::navigateToSurveyFormEdit,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal fun ManagementRoute(
navigateToEventEdit: (String, String) -> Unit,
navigateToEventRegistration: () -> Unit,
navigateToSurveyRegistration: () -> Unit,
navigateToSurveyCheck: (String) -> Unit,
navigateToSurveyFormEdit: (String) -> Unit,
viewModel: ManagementViewModel = hiltViewModel(),
) {
var isShowDialog by rememberSaveable { mutableStateOf(false) }
Expand Down Expand Up @@ -65,7 +65,7 @@ internal fun ManagementRoute(
eventsState = eventsState,
navigateToEventRegistration = navigateToEventRegistration,
navigateToSurveyRegistration = navigateToSurveyRegistration,
navigateToSurveyCheck = navigateToSurveyCheck,
navigateToSurveyFormEdit = navigateToSurveyFormEdit,
navigateToEventEdit = navigateToEventEdit,
)

Expand All @@ -87,7 +87,7 @@ internal fun ManagementScreen(
navigateToEventEdit: (String, String) -> Unit,
navigateToEventRegistration: () -> Unit,
navigateToSurveyRegistration: () -> Unit,
navigateToSurveyCheck: (String) -> Unit,
navigateToSurveyFormEdit: (String) -> Unit,
) {
Scaffold(
containerColor = WappTheme.colors.backgroundBlack,
Expand All @@ -109,7 +109,7 @@ internal fun ManagementScreen(

ManagementSurveyCard(
surveyFormsState = surveyFormsState,
onCardClicked = navigateToSurveyCheck,
onCardClicked = navigateToSurveyFormEdit,
onAddSurveyButtonClicked = navigateToSurveyRegistration,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ fun NavGraphBuilder.managementScreen(
navigateToEventEdit: (String, String) -> Unit,
navigateToEventRegistration: () -> Unit,
navigateToSurveyRegistration: () -> Unit,
navigateToSurveyCheck: (String) -> Unit,
navigateToSurveyFormEdit: (String) -> Unit,
) {
composable(route = managementNavigationRoute) {
ManagementRoute(
navigateToEventEdit = navigateToEventEdit,
navigateToEventRegistration = navigateToEventRegistration,
navigateToSurveyRegistration = navigateToSurveyRegistration,
navigateToSurveyCheck = navigateToSurveyCheck,
navigateToSurveyFormEdit = navigateToSurveyFormEdit,
)
}
}

0 comments on commit e082dd5

Please sign in to comment.