Skip to content

Commit

Permalink
SHARED-5365
Browse files Browse the repository at this point in the history
  • Loading branch information
Velkonost committed Dec 21, 2023
1 parent ed23633 commit f8e35e4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ fun TaskDetailScreen(
},
onFavoriteClick = {
viewModel.dispatch(TaskDetailAction.FavoriteClick)
},
onHintClick = {
viewModel.dispatch(TaskDetailAction.HintClick)
}
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,7 +34,8 @@ fun TaskDetailHeader(
isFavorite: Boolean,
isFavoriteLoading: Boolean,
onBackClick: () -> Unit,
onFavoriteClick: () -> Unit
onFavoriteClick: () -> Unit,
onHintClick: () -> Unit
) {
val interactionSource = remember { MutableInteractionSource() }

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f8e35e4

Please sign in to comment.