diff --git a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/model/TokenDetailsModel.kt b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/model/TokenDetailsModel.kt index 53870b1c26..8048df4fa4 100644 --- a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/model/TokenDetailsModel.kt +++ b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/model/TokenDetailsModel.kt @@ -1171,7 +1171,7 @@ internal class TokenDetailsModel @Inject constructor( override fun onYieldSupplyWarningAcknowledged(tokenAction: TokenAction) { bottomSheetNavigation.dismiss() modelScope.launch { - if(tokenAction != TokenAction.Info) { + if (tokenAction != TokenAction.Info) { saveViewedYieldSupplyWarningUseCase(cryptoCurrency.name) } if (tokenAction == TokenAction.Receive) { diff --git a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/ui/components/TokenDetailsBalanceBlock.kt b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/ui/components/TokenDetailsBalanceBlock.kt index 7181898192..d38b7d4e5c 100644 --- a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/ui/components/TokenDetailsBalanceBlock.kt +++ b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/ui/components/TokenDetailsBalanceBlock.kt @@ -3,11 +3,14 @@ package com.tangem.feature.tokendetails.presentation.tokendetails.ui.components import android.content.res.Configuration import androidx.compose.animation.Crossfade import androidx.compose.foundation.clickable +import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.* import androidx.compose.material3.Surface import androidx.compose.material3.Icon import androidx.compose.material3.Text +import androidx.compose.material3.ripple import androidx.compose.runtime.Composable +import androidx.compose.runtime.remember import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.tooling.preview.Preview @@ -175,9 +178,11 @@ private fun CryptoBalance( Icon( modifier = Modifier .size(TangemTheme.dimens.size16) - .clickable { - yieldSupplyState.yieldInfoClick() - }, + .clickable( + interactionSource = remember { MutableInteractionSource() }, + indication = ripple(bounded = false), + onClick = { yieldSupplyState.yieldInfoClick() }, + ), painter = painterResource(id = R.drawable.ic_information_24), tint = TangemTheme.colors.icon.inactive, contentDescription = null,