From 12361f4b430c24926410f085f1919ecf32bc0409 Mon Sep 17 00:00:00 2001 From: Yeongsang Jeon <53253298+toastmeister1@users.noreply.github.com> Date: Mon, 31 Jul 2023 20:00:18 +0900 Subject: [PATCH] =?UTF-8?q?[=20Fix=20]=20:=20=EC=95=A1=EC=85=98=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=20=EC=8B=9C=20ViewModel=EC=9D=98=20setEvent?= =?UTF-8?q?=20=EB=A9=94=EC=84=9C=EB=93=9C=EB=A5=BC=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95=20(#313)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yapp/presentation/ui/admin/totalscore/AdminTotalScore.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presentation/src/main/java/com/yapp/presentation/ui/admin/totalscore/AdminTotalScore.kt b/presentation/src/main/java/com/yapp/presentation/ui/admin/totalscore/AdminTotalScore.kt index 9f09898f..65d29606 100644 --- a/presentation/src/main/java/com/yapp/presentation/ui/admin/totalscore/AdminTotalScore.kt +++ b/presentation/src/main/java/com/yapp/presentation/ui/admin/totalscore/AdminTotalScore.kt @@ -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()