Skip to content

Commit

Permalink
[CHORE] #112 : 불필요한 코드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 6, 2024
1 parent a040651 commit 574ffac
Showing 1 changed file with 4 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.wap.wapp.feature.management

import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.Scaffold
Expand Down Expand Up @@ -49,24 +48,16 @@ internal fun ManagementRoute(
is ManagementViewModel.UserRoleUiState.Init -> {}
is ManagementViewModel.UserRoleUiState.Success -> {
when (userRoleUiState.userRole) {
UserRole.GUEST -> {
showGuestScreen = true
}

UserRole.MEMBER -> {
showValidationScreen = true
}

UserRole.GUEST -> { showGuestScreen = true }
UserRole.MEMBER -> { showValidationScreen = true }
UserRole.MANAGER -> viewModel.getEventSurveyList()
}
}
}
}

viewModel.errorFlow.collectLatest { throwable ->
snackBarHostState.showSnackbar(
message = throwable.toSupportingText(),
)
snackBarHostState.showSnackbar(message = throwable.toSupportingText())
}
}

Expand Down Expand Up @@ -117,11 +108,7 @@ internal fun ManagementScreen(
)
},
) { paddingValues ->
LazyColumn(
modifier = Modifier
.padding(paddingValues)
.fillMaxSize(),
) {
LazyColumn(modifier = Modifier.padding(paddingValues)) {
item {
ManagementEventCard(
eventsState = eventsState,
Expand Down

0 comments on commit 574ffac

Please sign in to comment.