Updated on 2026-08-14
This commit is contained in:
commit
e96c236de5
32 changed files with 433 additions and 82 deletions
|
|
@ -80,14 +80,16 @@ internal class TangemPayHotWalletOnboardingModel @Inject constructor(
|
|||
TangemLogger.i("[TangemPay][HWO]Hot wallet created")
|
||||
clearAppsFlyerDeeplinkUseCase(AppsFlyerDeeplinkSource.TangemPayHotWalletOnboarding)
|
||||
|
||||
router.replaceCurrent(
|
||||
router.replaceAll(
|
||||
AppRoute.CreateWalletBackup(
|
||||
userWalletId = userWallet.walletId,
|
||||
analyticsSource = AnalyticsParam.ScreensSources.TangemPayHotWalletOnboarding.value,
|
||||
analyticsAction = WalletSettingsAnalyticEvents.RecoveryPhraseScreenAction.Backup.value,
|
||||
shouldShowBackButton = false,
|
||||
nextScreen = AppRoute.UpdateAccessCode(
|
||||
userWalletId = userWallet.walletId,
|
||||
source = AnalyticsParam.ScreensSources.TangemPayHotWalletOnboarding.value,
|
||||
shouldShowBackButton = false,
|
||||
nextScreen = AppRoute.TangemPayOnboarding(
|
||||
mode = AppRoute.TangemPayOnboarding.Mode.FirstSetup(userWallet.walletId),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -61,7 +61,9 @@ private fun Content(state: TangemPayHotWalletOnboardingUM, modifier: Modifier =
|
|||
.verticalScroll(rememberScrollState()),
|
||||
) {
|
||||
Text(
|
||||
modifier = Modifier.padding(40.dp),
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(40.dp),
|
||||
text = stringResourceSafe(R.string.tangempay_onboarding_title),
|
||||
style = TangemTheme.typography.h2,
|
||||
color = TangemTheme.colors.text.primary1,
|
||||
|
|
@ -73,12 +75,14 @@ private fun Content(state: TangemPayHotWalletOnboardingUM, modifier: Modifier =
|
|||
contentDescription = null,
|
||||
contentScale = ContentScale.FillWidth,
|
||||
)
|
||||
Features(modifier = Modifier.padding(horizontal = 40.dp))
|
||||
Features(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 40.dp),
|
||||
)
|
||||
Spacer(Modifier.weight(1f))
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.padding(horizontal = 16.dp)
|
||||
.padding(bottom = 16.dp),
|
||||
modifier = Modifier.padding(16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||
) {
|
||||
NavigationPrimaryButton(
|
||||
|
|
|
|||
|
|
@ -82,8 +82,12 @@ internal class TangemPayHotWalletOnboardingModelTest {
|
|||
|
||||
coVerify { clearAppsFlyerDeeplinkUseCase(AppsFlyerDeeplinkSource.TangemPayHotWalletOnboarding) }
|
||||
verify {
|
||||
router.replaceCurrent(
|
||||
match { it is AppRoute.CreateWalletBackup && it.userWalletId == testUserWalletId },
|
||||
router.replaceAll(
|
||||
match { route ->
|
||||
route is AppRoute.CreateWalletBackup &&
|
||||
route.userWalletId == testUserWalletId &&
|
||||
!route.shouldShowBackButton
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -102,7 +106,7 @@ internal class TangemPayHotWalletOnboardingModelTest {
|
|||
assertThat(model.uiState.value.isLoading).isFalse()
|
||||
verify { uiMessageSender.send(match<DialogMessage> { true }) }
|
||||
coVerify(exactly = 0) { clearAppsFlyerDeeplinkUseCase(any()) }
|
||||
verify(exactly = 0) { router.replaceCurrent(any()) }
|
||||
verify(exactly = 0) { router.replaceAll(*anyVararg()) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue