Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-30 16:48:26 +03:00
parent acf110dbcc
commit 6910f74fd9
242 changed files with 866 additions and 732 deletions

View file

@ -68,7 +68,7 @@ internal class WalletComponent @AssistedInject constructor(
askBiometryComponentFactory.create(
context = childByContext(componentContext),
params = AskBiometryComponent.Params(
bottomSheetVariant = true,
isBottomSheetVariant = true,
modelCallbacks = model.askBiometryModelCallbacks,
),
)

View file

@ -450,7 +450,7 @@ internal class WalletCurrencyActionsClickIntentsImplementor @Inject constructor(
AppRoute.MarketsTokenDetails(
token = tokenMarketParams,
appCurrency = getSelectedAppCurrencyUseCase.unwrap(),
showPortfolio = false,
shouldShowPortfolio = false,
analyticsParams = AppRoute.MarketsTokenDetails.AnalyticsParams(
blockchain = cryptoCurrencyStatus.currency.network.name,
source = "Main",

View file

@ -79,7 +79,7 @@ internal object WalletPreviewData {
fallbackTint = TangemColorPalette.Black,
fallbackBackground = TangemColorPalette.Meadow,
isGrayscale = false,
showCustomBadge = false,
shouldShowCustomBadge = false,
),
titleState = TokenItemState.TitleState.Content(text = stringReference(value = "Polygon")),
subtitle2State = TokenItemState.Subtitle2State.TextContent(text = "3 172,14 $"),

View file

@ -260,9 +260,9 @@ private fun TopBar(
config = ActionButtonConfig(
text = TextReference.Res(id = R.string.organize_tokens_sort_by_balance),
iconResId = R.drawable.ic_sort_24,
enabled = config.isEnabled,
isEnabled = config.isEnabled,
onClick = config.onSortClick,
dimContent = config.isSortedByBalance,
shouldDimContent = config.isSortedByBalance,
),
color = TangemTheme.colors.background.primary,
)
@ -279,7 +279,7 @@ private fun TopBar(
},
),
iconResId = R.drawable.ic_group_24,
enabled = config.isEnabled,
isEnabled = config.isEnabled,
onClick = config.onGroupClick,
),
color = TangemTheme.colors.background.primary,

View file

@ -45,8 +45,8 @@ internal sealed class WalletManageButton(val config: ActionButtonConfig) {
text = TextReference.Res(id = R.string.common_buy),
iconResId = R.drawable.ic_plus_24,
onClick = onClick,
enabled = enabled,
dimContent = dimContent,
isEnabled = enabled,
shouldDimContent = dimContent,
isInProgress = isInProgress,
),
)
@ -67,8 +67,8 @@ internal sealed class WalletManageButton(val config: ActionButtonConfig) {
text = TextReference.Res(id = R.string.common_send),
iconResId = R.drawable.ic_arrow_up_24,
onClick = onClick,
enabled = enabled,
dimContent = dimContent,
isEnabled = enabled,
shouldDimContent = dimContent,
),
)
@ -87,8 +87,8 @@ internal sealed class WalletManageButton(val config: ActionButtonConfig) {
config = ActionButtonConfig(
text = TextReference.Res(id = R.string.common_receive),
iconResId = R.drawable.ic_arrow_down_24,
enabled = enabled,
dimContent = dimContent,
isEnabled = enabled,
shouldDimContent = dimContent,
onClick = onClick,
onLongClick = onLongClick,
),
@ -103,8 +103,8 @@ internal sealed class WalletManageButton(val config: ActionButtonConfig) {
text = TextReference.Res(id = R.string.common_stake),
iconResId = R.drawable.ic_staking_24,
onClick = onClick,
enabled = enabled,
dimContent = dimContent,
isEnabled = enabled,
shouldDimContent = dimContent,
),
)
@ -125,8 +125,8 @@ internal sealed class WalletManageButton(val config: ActionButtonConfig) {
text = TextReference.Res(id = R.string.common_sell),
iconResId = R.drawable.ic_currency_24,
onClick = onClick,
enabled = enabled,
dimContent = dimContent,
isEnabled = enabled,
shouldDimContent = dimContent,
isInProgress = isInProgress,
),
)
@ -149,10 +149,10 @@ internal sealed class WalletManageButton(val config: ActionButtonConfig) {
text = TextReference.Res(id = R.string.swapping_swap_action),
iconResId = R.drawable.ic_exchange_vertical_24,
onClick = onClick,
enabled = enabled,
dimContent = dimContent,
isEnabled = enabled,
shouldDimContent = dimContent,
isInProgress = isInProgress,
showBadge = showBadge,
shouldShowBadge = showBadge,
),
)
}

View file

@ -41,7 +41,7 @@ private fun BasicAlert(state: WalletAlertState.Basic, onDismiss: () -> Unit) {
if (onActionClick != null) {
confirmButton = DialogButtonUM(
title = state.confirmButtonText.resolveReference(),
warning = state.isWarningConfirmButton,
isWarning = state.isWarningConfirmButton,
onClick = {
onActionClick()
onDismiss()
@ -54,7 +54,7 @@ private fun BasicAlert(state: WalletAlertState.Basic, onDismiss: () -> Unit) {
} else {
confirmButton = DialogButtonUM(
title = state.confirmButtonText.resolveReference(),
warning = state.isWarningConfirmButton,
isWarning = state.isWarningConfirmButton,
onClick = onDismiss,
)
dismissButton = null
@ -77,7 +77,7 @@ private fun TextInputAlert(state: WalletAlertState.TextInput, onDismiss: () -> U
fieldValue = value,
confirmButton = DialogButtonUM(
title = state.confirmButtonText.resolveReference(),
enabled = value.text.isNotEmpty() &&
isEnabled = value.text.isNotEmpty() &&
value.text != state.text &&
state.errorTextProvider(value.text) == null,
onClick = {

View file

@ -31,7 +31,7 @@ internal fun LazyListScope.organizeTokensButton(
text = resourceReference(id = R.string.organize_tokens_title),
iconResId = R.drawable.ic_filter_24,
onClick = onClick,
enabled = isEnabled,
isEnabled = isEnabled,
),
)
}

View file

@ -33,7 +33,7 @@ internal fun TangemPayMainScreenBlock(state: TangemPayState, modifier: Modifier
buttonsState = NotificationConfig.ButtonsState.SecondaryButtonConfig(
text = state.buttonText,
onClick = state.onButtonClick,
showProgress = state.showProgress,
shouldShowProgress = state.showProgress,
),
),
)