Skip to content

Commit

Permalink
[ Fix ] : 액션 사용 시 ViewModel의 setEvent 메서드를 사용하도록 수정 (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
toastmeister1 authored Jul 31, 2023
1 parent 984740e commit 12361f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ fun AdminTotalScore(
}
}

Crossfade(targetState = uiState.value.loadState) {
Crossfade(targetState = uiState.value.loadState, label = "") {
when (it) {
AdminTotalScoreUiState.LoadState.Loading -> YDSProgressBar()
AdminTotalScoreUiState.LoadState.Idle -> AdminTotalScoreScreen(
modifier = Modifier.padding(contentPadding),
uiState = uiState.value,
onEvent = { event -> viewModel.dispatchEvent(event) }
onEvent = { event -> viewModel.setEvent(event) }
)

AdminTotalScoreUiState.LoadState.Error -> YDSEmptyScreen()
Expand Down

0 comments on commit 12361f4

Please sign in to comment.