Skip to content

Commit

Permalink
Merge pull request #311 from team-haribo/feature/310-remove-unused-pa…
Browse files Browse the repository at this point in the history
…rameters

🔀  :: (310) - Remove unused parameters
  • Loading branch information
minStone-dev authored Aug 28, 2024
2 parents d34aab1 + 26209f9 commit c457b33
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ fun GomsNavHost(
qrcodeState = qrcodeState,
onOutingStatusClick = navController::navigateToOutingStatus,
onLateListClick = navController::navigateToLateList,
onStudentManagementClick = navController::navigateToStudentManagement,
onQrcodeClick = { role ->
if (role == Authority.ROLE_STUDENT) {
navController.navigateToQrScan()
Expand Down
8 changes: 0 additions & 8 deletions feature/main/src/main/java/com/goms/main/MainScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ internal fun MainRoute(
qrcodeState: String,
onOutingStatusClick: () -> Unit,
onLateListClick: () -> Unit,
onStudentManagementClick: () -> Unit,
onQrcodeClick: (role: Authority) -> Unit,
onSettingClick: () -> Unit,
onAdminMenuClick: () -> Unit,
Expand All @@ -73,7 +72,6 @@ internal fun MainRoute(
val timeValue by viewModel.timeValue.collectAsStateWithLifecycle(initialValue = Switch.OFF.value)
val isRefreshing by viewModel.isRefreshing.collectAsStateWithLifecycle()
val tokenRefreshUiState by viewModel.tokenRefreshUiState.collectAsStateWithLifecycle()
val saveTokenUiState by viewModel.saveTokenUiState.collectAsStateWithLifecycle()
val getProfileUiState by viewModel.getProfileUiState.collectAsStateWithLifecycle()
val getLateRankListUiState by viewModel.getLateRankListUiState.collectAsStateWithLifecycle()
val getOutingListUiState by viewModel.getOutingListUiState.collectAsStateWithLifecycle()
Expand All @@ -96,14 +94,12 @@ internal fun MainRoute(
isRefreshing = isRefreshing,
isTimeLaunch = isTimeLaunch,
tokenRefreshUiState = tokenRefreshUiState,
saveTokenUiState = saveTokenUiState,
getProfileUiState = getProfileUiState,
getLateRankListUiState = getLateRankListUiState,
getOutingListUiState = getOutingListUiState,
getOutingCountUiState = getOutingCountUiState,
onOutingStatusClick = onOutingStatusClick,
onLateListClick = onLateListClick,
onStudentManagementClick = onStudentManagementClick,
onQrcodeClick = onQrcodeClick,
onSettingClick = onSettingClick,
onAdminMenuClick = onAdminMenuClick,
Expand All @@ -128,14 +124,12 @@ private fun MainScreen(
isRefreshing: Boolean,
isTimeLaunch: Boolean,
tokenRefreshUiState: TokenRefreshUiState,
saveTokenUiState: SaveTokenUiState,
getProfileUiState: GetProfileUiState,
getLateRankListUiState: GetLateRankListUiState,
getOutingListUiState: GetOutingListUiState,
getOutingCountUiState: GetOutingCountUiState,
onOutingStatusClick: () -> Unit,
onLateListClick: () -> Unit,
onStudentManagementClick: () -> Unit,
onQrcodeClick: (role: Authority) -> Unit,
onSettingClick: () -> Unit,
onAdminMenuClick: () -> Unit,
Expand Down Expand Up @@ -279,14 +273,12 @@ private fun MainScreenPreview() {
isRefreshing = false,
isTimeLaunch = false,
tokenRefreshUiState = TokenRefreshUiState.Loading,
saveTokenUiState = SaveTokenUiState.Loading,
getProfileUiState = GetProfileUiState.Loading,
getLateRankListUiState = GetLateRankListUiState.Loading,
getOutingListUiState = GetOutingListUiState.Loading,
getOutingCountUiState = GetOutingCountUiState.Loading,
onOutingStatusClick = {},
onLateListClick = {},
onStudentManagementClick = {},
onQrcodeClick = {},
onSettingClick = {},
onAdminMenuClick = {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ fun NavGraphBuilder.mainScreen(
qrcodeState: String,
onOutingStatusClick: () -> Unit,
onLateListClick: () -> Unit,
onStudentManagementClick: () -> Unit,
onQrcodeClick: (role: Authority) -> Unit,
onSettingClick: () -> Unit,
onAdminMenuClick: () -> Unit,
Expand All @@ -36,7 +35,6 @@ fun NavGraphBuilder.mainScreen(
qrcodeState = qrcodeState,
onOutingStatusClick = onOutingStatusClick,
onLateListClick = onLateListClick,
onStudentManagementClick = onStudentManagementClick,
onQrcodeClick = onQrcodeClick,
onSettingClick = onSettingClick,
onAdminMenuClick = onAdminMenuClick,
Expand Down

0 comments on commit c457b33

Please sign in to comment.