Updated on 2026-08-14

This commit is contained in:
Tangem 2024-12-10 13:46:54 +05:00
parent 584254ea3e
commit eaa6c10676
3 changed files with 18 additions and 8 deletions

View file

@ -228,9 +228,13 @@ sealed class NotificationUM(val config: NotificationConfig) {
),
)
data class OnrampErrorNotification(val onRefresh: () -> Unit) : Warning(
data class OnrampErrorNotification(val errorCode: String?, val onRefresh: () -> Unit) : Warning(
title = resourceReference(R.string.common_error),
subtitle = resourceReference(R.string.common_unknown_error),
subtitle = if (errorCode != null) {
resourceReference(R.string.express_error_code, wrappedList(errorCode))
} else {
resourceReference(R.string.common_unknown_error)
},
buttonsState = NotificationConfig.ButtonsState.SecondaryButtonConfig(
text = resourceReference(R.string.warning_button_refresh),
onClick = onRefresh,