File tree Expand file tree Collapse file tree
feature/src/main/kotlin/team/aliens/dms/android/feature/main/home Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package team.aliens.dms.android.feature.main.home.model
33import androidx.annotation.DrawableRes
44import androidx.compose.foundation.Image
55import androidx.compose.foundation.background
6+ import androidx.compose.foundation.clickable
67import androidx.compose.foundation.layout.Column
78import androidx.compose.foundation.layout.Row
89import androidx.compose.foundation.layout.Spacer
@@ -27,6 +28,7 @@ fun DmsPointContent(
2728 bonusPoint : Int ,
2829 minusPoint : Int ,
2930 modifier : Modifier = Modifier ,
31+ onClick : (() -> Unit )? = null,
3032) {
3133 Column (
3234 modifier = modifier
@@ -36,6 +38,7 @@ fun DmsPointContent(
3638 color = DmsTheme .colorScheme.surfaceTint,
3739 shape = RoundedCornerShape (32 .dp),
3840 )
41+ .then(if (onClick != null ) Modifier .clickable(onClick = onClick) else Modifier )
3942 .padding(24 .dp),
4043 ) {
4144 Text (
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ private fun HomeScreen(
128128 .padding(top = 20 .dp),
129129 bonusPoint = state.myPage.bonusPoint,
130130 minusPoint = state.myPage.minusPoint,
131+ onClick = { onNavigatePointHistory(PointType .ALL ) },
131132 )
132133 DmsItemButton (
133134 modifier = Modifier
You can’t perform that action at this time.
0 commit comments