Updated on 2026-08-14

This commit is contained in:
Tangem 2025-08-11 16:36:04 +05:00
parent aa05aafc8b
commit 06d083b283
8 changed files with 35 additions and 33 deletions

View file

@ -64,22 +64,19 @@ internal class SwapAmountAlertFactory @Inject constructor(
}
fun showCloseSendWithSwapAlert(onConfirm: () -> Unit) {
// todo fix localization [REDACTED_TASK_KEY]
uiMessageSender.send(
DialogMessage(
title = stringReference("Confirm cancellation"),
message = stringReference(
"Are you sure you want to cancel the conversion? After changing, previous data will be reset.",
),
title = resourceReference(R.string.send_with_swap_remove_convert_alert_title),
message = resourceReference(R.string.send_with_swap_remove_convert_alert_message),
firstActionBuilder = {
EventMessageAction(
title = stringReference("Confirm"),
title = resourceReference(R.string.common_confirm),
onClick = onConfirm,
)
},
secondActionBuilder = {
EventMessageAction(
title = stringReference("Not Now"),
title = resourceReference(R.string.common_not_now),
onClick = onDismissRequest,
)
},

View file

@ -661,7 +661,7 @@ internal class SwapAmountModel @Inject constructor(
).onEach { (state, route) ->
params.callback.onNavigationResult(
NavigationUM.Content(
title = resourceReference(R.string.common_swap),
title = resourceReference(R.string.common_amount),
subtitle = null,
backIconRes = if (route.isEditMode) {
R.drawable.ic_back_24

View file

@ -3,7 +3,6 @@ package com.tangem.features.swap.v2.impl.choosetoken.fromSupported.model
import com.tangem.core.decompose.di.ModelScoped
import com.tangem.core.decompose.ui.UiMessageSender
import com.tangem.core.ui.extensions.resourceReference
import com.tangem.core.ui.extensions.stringReference
import com.tangem.core.ui.message.DialogMessage
import com.tangem.core.ui.message.EventMessageAction
import com.tangem.features.swap.v2.impl.R
@ -26,22 +25,19 @@ internal class SwapChooseTokenAlertFactory @Inject constructor(
}
fun showChangeTokenAlert(onConfirm: () -> Unit, onDismiss: () -> Unit) {
// todo fix localization [REDACTED_TASK_KEY]
uiMessageSender.send(
DialogMessage(
title = stringReference("Changing token"),
message = stringReference(
"Are you sure you want to change the token? After changing, previous data will be reset.",
),
title = resourceReference(R.string.send_with_swap_change_token_alert_title),
message = resourceReference(R.string.send_with_swap_change_token_alert_message),
firstActionBuilder = {
EventMessageAction(
title = stringReference("Change"),
title = resourceReference(R.string.common_change),
onClick = onConfirm,
)
},
secondActionBuilder = {
EventMessageAction(
title = stringReference("Cancel"),
title = resourceReference(R.string.common_cancel),
onClick = onDismiss,
)
},

View file

@ -125,9 +125,12 @@ internal fun SendWithSwapSuccessContent(sendWithSwapUM: SendWithSwapUM) {
),
),
)
.padding(top = 24.dp)
.padding(horizontal = 16.dp),
.padding(
top = 24.dp,
bottom = 12.dp,
start = 16.dp,
end = 16.dp,
),
)
}
}