From d5e4b384f8175be59bc1318397affc5f2cfbd1f4 Mon Sep 17 00:00:00 2001 From: SeonJeongk Date: Mon, 3 Feb 2025 01:18:29 +0900 Subject: [PATCH] =?UTF-8?q?[TNT-189]=20fix:=20onBackClick=20=EC=9D=B4?= =?UTF-8?q?=EB=B2=A4=ED=8A=B8=EB=A1=9C=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/tnt/trainee/notification/TraineeNotificationScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feature/trainee/notification/src/main/java/co/kr/tnt/trainee/notification/TraineeNotificationScreen.kt b/feature/trainee/notification/src/main/java/co/kr/tnt/trainee/notification/TraineeNotificationScreen.kt index 88821e84..13c65717 100644 --- a/feature/trainee/notification/src/main/java/co/kr/tnt/trainee/notification/TraineeNotificationScreen.kt +++ b/feature/trainee/notification/src/main/java/co/kr/tnt/trainee/notification/TraineeNotificationScreen.kt @@ -22,6 +22,7 @@ import co.kr.tnt.designsystem.component.TnTTopBarWithBackButton import co.kr.tnt.designsystem.component.notification.TnTNotification import co.kr.tnt.designsystem.component.notification.model.NotificationIcon import co.kr.tnt.designsystem.theme.TnTTheme +import co.kr.tnt.trainee.notification.TraineeNotificationContract.TraineeNotificationUiEvent import co.kr.tnt.trainee.notification.TraineeNotificationContract.TraineeNotificationUiState import co.kr.tnt.ui.model.NotificationState import co.kr.tnt.core.ui.R as uiResource @@ -36,7 +37,7 @@ internal fun TraineeNotificationRoute( TraineeNotificationScreen( state = uiState, - onBackClick = navigateToPrevious, + onBackClick = { viewModel.setEvent(TraineeNotificationUiEvent.OnBackClick) }, ) LaunchedEffect(viewModel.effect) {