Updated on 2026-08-14
This commit is contained in:
parent
466b6e578b
commit
df4288e70a
27 changed files with 381 additions and 31 deletions
|
|
@ -222,13 +222,23 @@ private fun Buttons(state: NotificationButtonsState?, isEnabled: Boolean = true)
|
|||
|
||||
@Composable
|
||||
private fun SingleSecondaryButton(config: NotificationButtonsState.SecondaryButtonConfig, isEnabled: Boolean = true) {
|
||||
SecondaryButton(
|
||||
text = config.text.resolveReference(),
|
||||
onClick = config.onClick,
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
size = TangemButtonSize.WideAction,
|
||||
enabled = isEnabled,
|
||||
)
|
||||
if (config.iconResId != null) {
|
||||
SecondaryButtonIconEnd(
|
||||
text = config.text.resolveReference(),
|
||||
onClick = config.onClick,
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
iconResId = config.iconResId,
|
||||
enabled = isEnabled,
|
||||
)
|
||||
} else {
|
||||
SecondaryButton(
|
||||
text = config.text.resolveReference(),
|
||||
onClick = config.onClick,
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
size = TangemButtonSize.WideAction,
|
||||
enabled = isEnabled,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
|
|
|||
9
core/ui/src/main/res/drawable/ic_alert_circle_red_20.xml
Normal file
9
core/ui/src/main/res/drawable/ic_alert_circle_red_20.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:pathData="M10.833,10.833H9.167V5.833H10.833M10.833,14.167H9.167V12.5H10.833M10,1.667C8.906,1.667 7.822,1.882 6.811,2.301C5.8,2.72 4.881,3.334 4.107,4.108C2.545,5.67 1.667,7.79 1.667,10C1.667,12.21 2.545,14.33 4.107,15.893C4.881,16.667 5.8,17.28 6.811,17.699C7.822,18.118 8.906,18.333 10,18.333C12.21,18.333 14.33,17.455 15.892,15.893C17.455,14.33 18.333,12.21 18.333,10C18.333,8.906 18.118,7.822 17.699,6.811C17.28,5.8 16.666,4.881 15.892,4.108C15.119,3.334 14.2,2.72 13.189,2.301C12.178,1.882 11.094,1.667 10,1.667Z"
|
||||
android:fillColor="#FF3333"/>
|
||||
</vector>
|
||||
Loading…
Add table
Add a link
Reference in a new issue