diff --git a/androidApp/features/addarea/src/main/kotlin/com/velkonost/getbetter/android/features/addarea/components/AddAreaHeader.kt b/androidApp/features/addarea/src/main/kotlin/com/velkonost/getbetter/android/features/addarea/components/AddAreaHeader.kt index 84a340534..7f8d90715 100644 --- a/androidApp/features/addarea/src/main/kotlin/com/velkonost/getbetter/android/features/addarea/components/AddAreaHeader.kt +++ b/androidApp/features/addarea/src/main/kotlin/com/velkonost/getbetter/android/features/addarea/components/AddAreaHeader.kt @@ -61,7 +61,7 @@ fun AddAreaHeader( ) HintButton( - modifier = modifier.padding(start = 12.dp, top = 6.dp), + modifier = modifier.padding(start = 6.dp, top = 6.dp), onClick = onHintClick ) } diff --git a/androidApp/features/taskdetail/src/main/kotlin/com/velkonost/getbetter/android/features/taskdetail/TaskDetailScreen.kt b/androidApp/features/taskdetail/src/main/kotlin/com/velkonost/getbetter/android/features/taskdetail/TaskDetailScreen.kt index c511d7ec9..7abca42ea 100644 --- a/androidApp/features/taskdetail/src/main/kotlin/com/velkonost/getbetter/android/features/taskdetail/TaskDetailScreen.kt +++ b/androidApp/features/taskdetail/src/main/kotlin/com/velkonost/getbetter/android/features/taskdetail/TaskDetailScreen.kt @@ -96,6 +96,9 @@ fun TaskDetailScreen( }, onFavoriteClick = { viewModel.dispatch(TaskDetailAction.FavoriteClick) + }, + onHintClick = { + viewModel.dispatch(TaskDetailAction.HintClick) } ) } diff --git a/androidApp/features/taskdetail/src/main/kotlin/com/velkonost/getbetter/android/features/taskdetail/components/TaskDetailHeader.kt b/androidApp/features/taskdetail/src/main/kotlin/com/velkonost/getbetter/android/features/taskdetail/components/TaskDetailHeader.kt index 3bae812b6..0e8c39bf8 100644 --- a/androidApp/features/taskdetail/src/main/kotlin/com/velkonost/getbetter/android/features/taskdetail/components/TaskDetailHeader.kt +++ b/androidApp/features/taskdetail/src/main/kotlin/com/velkonost/getbetter/android/features/taskdetail/components/TaskDetailHeader.kt @@ -20,6 +20,7 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.ColorFilter import androidx.compose.ui.unit.dp +import com.velkonost.getbetter.core.compose.components.HintButton import com.velkonost.getbetter.core.compose.components.Loader import com.velkonost.getbetter.shared.resources.SharedR import dev.icerock.moko.resources.compose.colorResource @@ -33,7 +34,8 @@ fun TaskDetailHeader( isFavorite: Boolean, isFavoriteLoading: Boolean, onBackClick: () -> Unit, - onFavoriteClick: () -> Unit + onFavoriteClick: () -> Unit, + onHintClick: () -> Unit ) { val interactionSource = remember { MutableInteractionSource() } @@ -68,6 +70,12 @@ fun TaskDetailHeader( style = MaterialTheme.typography.headlineSmall, color = colorResource(resource = SharedR.colors.text_title) ) + + HintButton( + modifier = modifier.padding(start = 6.dp, top = 6.dp), + onClick = onHintClick + ) + Spacer(modifier.weight(1f)) if (!isShortInfo) {