Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-02 17:46:22 +04:00
parent 16a190cbe7
commit 772ec7b53a
4 changed files with 16 additions and 12 deletions

View file

@ -26,8 +26,7 @@ internal object WcAlertsFactory {
return messageBottomSheetUM {
infoBlock {
icon(R.drawable.img_knight_shield_32) {
type = MessageBottomSheetUMV2.Icon.Type.Attention
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Attention
}
title = resourceReference(R.string.security_alert_title)
body = resourceReference(R.string.wc_alert_domain_issues_description)
@ -52,12 +51,11 @@ internal object WcAlertsFactory {
return messageBottomSheetUM {
infoBlock {
icon(R.drawable.img_knight_shield_32) {
type = MessageBottomSheetUMV2.Icon.Type.Warning
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Warning
}
title = resourceReference(R.string.security_alert_title)
body = resourceReference(R.string.wc_alert_domain_issues_description)
chip(resourceReference(R.string.wc_alert_audit_unknown_domain)) {
chip(resourceReference(R.string.wc_alert_audit_malicious_domain)) {
type = MessageBottomSheetUMV2.Chip.Type.Warning
}
}
@ -78,8 +76,7 @@ internal object WcAlertsFactory {
return messageBottomSheetUM {
infoBlock {
icon(R.drawable.img_attention_20) {
type = MessageBottomSheetUMV2.Icon.Type.Warning
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Attention
}
title = resourceReference(R.string.wc_alert_unknown_error_title)
body = if (errorMessage.isNullOrEmpty()) {
@ -105,8 +102,7 @@ internal object WcAlertsFactory {
return messageBottomSheetUM {
infoBlock {
icon(R.drawable.img_knight_shield_32) {
type = MessageBottomSheetUMV2.Icon.Type.Warning
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Attention
}
title = resourceReference(R.string.security_alert_title)
if (!description.isNullOrEmpty()) {
@ -128,8 +124,7 @@ internal object WcAlertsFactory {
return messageBottomSheetUM {
infoBlock {
icon(R.drawable.img_approvale2_20) {
type = MessageBottomSheetUMV2.Icon.Type.Accent
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Unspecified
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Accent
}
title = resourceReference(R.string.wc_alert_verified_domain_title)
body = resourceReference(R.string.wc_alert_verified_domain_description, wrappedList(appName))