diff --git a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/WalletScreen2.kt b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/WalletScreen2.kt index 2329a20839..ebd2c17955 100644 --- a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/WalletScreen2.kt +++ b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/WalletScreen2.kt @@ -355,7 +355,8 @@ private fun WalletContent2( MarketsHint( modifier = Modifier .align(Alignment.BottomCenter) - .padding(bottom = peekHeight + TangemTheme.dimens2.x7), + .fillMaxWidth(fraction = .6f) + .padding(bottom = peekHeight), isVisible = isShowMarketsHint, ) } diff --git a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/components/MarketsHint.kt b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/components/MarketsHint.kt index c34f8e901b..9ac6ed900e 100644 --- a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/components/MarketsHint.kt +++ b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/ui/components/MarketsHint.kt @@ -7,17 +7,16 @@ import androidx.compose.animation.fadeIn import androidx.compose.animation.fadeOut import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column -import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.size import androidx.compose.material3.Icon import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier -import androidx.compose.ui.graphics.vector.ImageVector -import androidx.compose.ui.res.vectorResource +import androidx.compose.ui.res.painterResource import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.tooling.preview.Preview +import androidx.compose.ui.unit.dp import com.tangem.core.ui.extensions.stringResourceSafe import com.tangem.core.ui.res.TangemTheme import com.tangem.core.ui.res.TangemThemePreviewRedesign @@ -32,29 +31,21 @@ internal fun MarketsHint(isVisible: Boolean, modifier: Modifier = Modifier) { exit = fadeOut(animationSpec = tween(durationMillis = 300)), ) { Column( + verticalArrangement = Arrangement.spacedBy(space = 4.dp), horizontalAlignment = Alignment.CenterHorizontally, - verticalArrangement = Arrangement.spacedBy(TangemTheme.dimens2.x1), ) { Text( - text = stringResourceSafe(R.string.markets_hint_part_one), + text = stringResourceSafe(R.string.markets_hint), style = TangemTheme.typography2.bodyRegular15, - color = TangemTheme.colors2.text.neutral.primary, + color = TangemTheme.colors2.text.neutral.tertiary, textAlign = TextAlign.Center, ) - Row(horizontalArrangement = Arrangement.spacedBy(TangemTheme.dimens2.x1)) { - Text( - text = stringResourceSafe(R.string.markets_hint_part_two), - style = TangemTheme.typography2.bodyRegular15, - color = TangemTheme.colors2.text.neutral.tertiary, - textAlign = TextAlign.Center, - ) - Icon( - imageVector = ImageVector.vectorResource(R.drawable.ic_magic_default_24), - tint = TangemTheme.colors2.text.neutral.tertiary, - contentDescription = null, - modifier = Modifier.size(TangemTheme.dimens2.x5), - ) - } + Icon( + modifier = Modifier.size(size = 24.dp), + painter = painterResource(id = R.drawable.ic_chevron_24), + tint = TangemTheme.colors2.graphic.neutral.tertiary, + contentDescription = null, + ) } } }