Updated on 2026-08-14
This commit is contained in:
parent
081128f2cf
commit
63b07cccc3
53 changed files with 614 additions and 464 deletions
|
|
@ -477,7 +477,16 @@ internal class WalletWarningsClickIntentsImplementor @Inject constructor(
|
|||
override fun onFinishWalletActivationClick(isBackupExists: Boolean) {
|
||||
analyticsEventHandler.send(MainScreen.ButtonFinalizeActivation())
|
||||
val userWalletId = stateHolder.getSelectedWalletId()
|
||||
appRouter.push(WalletActivation(userWalletId, isBackupExists))
|
||||
val route = if (isBackupExists) {
|
||||
WalletActivation(userWalletId = userWalletId, isBackupExists = true)
|
||||
} else {
|
||||
WalletBackup(
|
||||
userWalletId = userWalletId,
|
||||
isColdWalletOptionShown = true,
|
||||
)
|
||||
}
|
||||
|
||||
appRouter.push(route)
|
||||
}
|
||||
|
||||
override fun onAllowPermissions() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package com.tangem.feature.wallet.presentation.wallet.analytics.utils
|
||||
|
||||
import com.tangem.common.routing.AppRoute.WalletActivation
|
||||
import com.tangem.common.routing.AppRoute.WalletBackup
|
||||
import com.tangem.core.decompose.di.ModelScoped
|
||||
import com.tangem.core.decompose.navigation.Router
|
||||
import com.tangem.core.decompose.ui.UiMessageSender
|
||||
|
|
@ -93,7 +93,12 @@ internal class WalletWarningsSingleEventSender @Inject constructor(
|
|||
primaryButton {
|
||||
text = resourceReference(R.string.hw_activation_need_backup)
|
||||
onClick {
|
||||
router.push(WalletActivation(userWallet.walletId, userWallet.backedUp))
|
||||
router.push(
|
||||
WalletBackup(
|
||||
userWalletId = userWalletId,
|
||||
isColdWalletOptionShown = true,
|
||||
),
|
||||
)
|
||||
closeBs()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue