Updated on 2026-08-14
This commit is contained in:
parent
1157642722
commit
74e43f248e
17 changed files with 129 additions and 74 deletions
|
|
@ -294,6 +294,7 @@ internal class TangemPayCardPageModel @Inject constructor(
|
|||
title = TextReference.Res(R.string.tangempay_card_details_title),
|
||||
onClick = ::onClickViewDetails,
|
||||
iconRes = CoreUiR.drawable.ic_visa_card_details_24,
|
||||
testTag = TangemPayTestTags.SHOW_DETAILS_ROW,
|
||||
),
|
||||
TangemPayCardPageSettingV2(
|
||||
id = TangemPayCardPageSettingV2.Id.Freeze,
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ internal fun TangemPayChangePinCodeSuccessScreenV2(onClose: () -> Unit, modifier
|
|||
onButtonClick = onClose,
|
||||
titleTestTag = TangemPayTestTags.PIN_SUCCESS_TITLE,
|
||||
subtitleTestTag = TangemPayTestTags.PIN_SUCCESS_DESCRIPTION,
|
||||
buttonTestTag = TangemPayTestTags.PIN_DONE_BUTTON,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ import com.tangem.core.ui.extensions.resourceReference
|
|||
import com.tangem.core.ui.extensions.stringResourceSafe
|
||||
import com.tangem.core.ui.res.TangemTheme
|
||||
import com.tangem.core.ui.res.TangemThemePreviewRedesign
|
||||
import com.tangem.core.ui.test.BaseActionButtonsBlockTestTags
|
||||
import com.tangem.core.ui.test.TangemPayTestTags
|
||||
import com.tangem.features.tangempay.components.express.PreviewEmptyExpressTransactionsComponent
|
||||
import com.tangem.features.tangempay.components.txHistory.PreviewTangemPayTxHistoryComponent
|
||||
|
|
@ -428,6 +429,7 @@ private fun LazyItemScope.ActionBlock(
|
|||
) {
|
||||
actionButtons.fastForEach { actionConfig ->
|
||||
TangemPayActionButton(
|
||||
modifier = Modifier.testTag(BaseActionButtonsBlockTestTags.ACTION_BUTTON),
|
||||
iconRes = actionConfig.iconResId,
|
||||
onClick = actionConfig.onClick,
|
||||
isEnabled = actionConfig.isEnabled,
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ internal fun TangemPaySuccessScreenWrapper(
|
|||
fadeColor: Color = Color(DEFAULT_FADE_COLOR),
|
||||
titleTestTag: String? = null,
|
||||
subtitleTestTag: String? = null,
|
||||
buttonTestTag: String? = null,
|
||||
) {
|
||||
Box(modifier = modifier.fillMaxSize()) {
|
||||
Box(
|
||||
|
|
@ -90,7 +91,8 @@ internal fun TangemPaySuccessScreenWrapper(
|
|||
TangemButton(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(vertical = TangemTheme.dimens2.x3),
|
||||
.padding(vertical = TangemTheme.dimens2.x3)
|
||||
.then(buttonTestTag?.let { Modifier.testTag(it) } ?: Modifier),
|
||||
onClick = onButtonClick,
|
||||
size = TangemButton.Size.X12,
|
||||
text = buttonText,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue