From 1f7a07d9f5e7dce104279700a04960598c4c36de Mon Sep 17 00:00:00 2001 From: Hyunkuk Date: Mon, 2 Oct 2023 16:32:59 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=ED=81=B4=EB=A6=AD=20=EC=95=A1=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presenter/history/datail/HistoryDetailScreen.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/presenter/src/main/java/com/mashup/twotoo/presenter/history/datail/HistoryDetailScreen.kt b/presenter/src/main/java/com/mashup/twotoo/presenter/history/datail/HistoryDetailScreen.kt index fb73ecbf..f7dedc40 100644 --- a/presenter/src/main/java/com/mashup/twotoo/presenter/history/datail/HistoryDetailScreen.kt +++ b/presenter/src/main/java/com/mashup/twotoo/presenter/history/datail/HistoryDetailScreen.kt @@ -36,6 +36,7 @@ fun HistoryDetailRoute( commitNo: Int, historyViewModel: HistoryViewModel, onClickBackButton: () -> Unit, + onClickImage: (String) -> Unit, ) { Log.i("HistoryDetailRoute", "commitNo = $commitNo") val lifecycleOwner = LocalLifecycleOwner.current @@ -46,15 +47,17 @@ fun HistoryDetailRoute( } val state by historyViewModel.collectAsState() HistoryDetailScreen( - onClickBackButton = onClickBackButton, historyDetailInfoUiModel = state.historyDetailInfoUiModel, + onClickBackButton = onClickBackButton, + onClickImage = onClickImage, ) } @Composable fun HistoryDetailScreen( - onClickBackButton: () -> Unit, historyDetailInfoUiModel: HistoryDetailInfoUiModel, + onClickBackButton: () -> Unit = {}, + onClickImage: (String) -> Unit = {}, ) { val scrollableState = rememberScrollState() @@ -98,7 +101,10 @@ fun HistoryDetailScreen( .fillMaxWidth() .padding(vertical = 24.dp) .aspectRatio(1f) - .clip(TwoTooTheme.shape.extraSmall), + .clip(TwoTooTheme.shape.extraSmall).clickable { + onClickImage(historyDetailInfoUiModel.infoUiModel.photoUrl) + }, + ) Text( text = historyDetailInfoUiModel.challengeName,