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

@ -22,7 +22,7 @@ internal fun SettingsAlertDialog(dialog: Dialog.Alert) {
isDismissable = false,
confirmButton = DialogButtonUM(
title = dialog.confirmText.resolveReference(),
warning = true,
isWarning = true,
onClick = dialog.onConfirm,
),
dismissButton = DialogButtonUM(

View file

@ -208,7 +208,7 @@ private fun CommonResetDialog(dialog: ResetCardScreenState.Dialog) {
),
confirmButton = DialogButtonUM(
title = stringResourceSafe(id = R.string.card_settings_action_sheet_reset),
warning = true,
isWarning = true,
onClick = dialog.onConfirmClick,
),
onDismissDialog = dialog.onDismiss,

View file

@ -165,7 +165,7 @@ internal class MainViewModel @Inject constructor(
private fun launchAPIRequests(function: suspend CoroutineScope.() -> Unit) {
viewModelScope.launch {
if (BuildConfig.TESTER_MENU_ENABLED) {
apiConfigsManager.isInitialized
apiConfigsManager.initializedState
.filter { it }
.first() // wait until isInitialized becomes true

View file

@ -185,7 +185,7 @@ internal class ChildFactory @Inject constructor(
params = MarketsTokenDetailsComponent.Params(
token = route.token,
appCurrency = route.appCurrency,
showPortfolio = route.showPortfolio,
shouldShowPortfolio = route.shouldShowPortfolio,
analyticsParams = route.analyticsParams?.let { params ->
MarketsTokenDetailsComponent.AnalyticsParams(
blockchain = params.blockchain,
@ -203,7 +203,7 @@ internal class ChildFactory @Inject constructor(
userWalletId = route.portfolioId.userWalletId, // todo account portfolioId param,
cryptoCurrency = route.currency,
source = route.source,
launchSepa = route.launchSepa,
shouldLaunchSepa = route.shouldLaunchSepa,
),
componentFactory = onrampComponentFactory,
)
@ -462,7 +462,7 @@ internal class ChildFactory @Inject constructor(
initialCurrency = route.initialCurrency,
selectedCurrency = route.selectedCurrency,
source = ChooseManagedTokensComponent.Source.valueOf(route.source.name),
showSendViaSwapNotification = route.showSendViaSwapNotification,
shouldShowSendViaSwapNotification = route.shouldShowSendViaSwapNotification,
analyticsCategoryName = route.analyticsCategoryName,
),
componentFactory = chooseManagedTokensComponentFactory,