chore: add labels to Crossfade elements

This commit is contained in:
Harsh Shandilya 2023-03-08 02:24:00 +05:30
parent b969b5f0bf
commit 55cc397333
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -157,7 +157,7 @@ private fun SaveButton(
isSaved: Boolean,
modifier: Modifier = Modifier,
) {
Crossfade(targetState = isSaved) { saved ->
Crossfade(targetState = isSaved, label = "save-button") { saved ->
Box(modifier = modifier.padding(12.dp)) {
Icon(
painter = if (saved) ClawIcons.Heart else ClawIcons.HeartBorder,