Skip to content

Commit

Permalink
chore: disable multiple reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorhugods committed Aug 23, 2023
1 parent 01fdfd9 commit c8ce01b
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,14 @@ fun ReactionOption(
) {
Button(
onClick = {
onReactionClick(emoji)
if (emoji == "❤️") {
onReactionClick(emoji)
}
},
modifier = Modifier.defaultMinSize(minWidth = 1.dp, minHeight = 1.dp),
modifier = Modifier
// TODO remove when all emojis will be available
.alpha(if (emoji == "❤️") 1F else 0.3F)
.defaultMinSize(minWidth = 1.dp, minHeight = 1.dp),
contentPadding = PaddingValues(dimensions().spacing8x),
colors = ButtonDefaults.buttonColors(
containerColor = MaterialTheme.wireColorScheme.surface,
Expand Down

0 comments on commit c8ce01b

Please sign in to comment.