Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-20 11:27:43 -07:00
parent 5b516f2c9b
commit a82d8cdbba
43 changed files with 829 additions and 89 deletions

View file

@ -14,6 +14,9 @@ dependencies {
implementation(projects.core.decompose)
implementation(projects.core.ui)
/* Common */
implementation(projects.common.routing)
/* Compose */
implementation(deps.compose.runtime)
}

View file

@ -1,5 +1,6 @@
package com.tangem.features.disclaimer.api.components
import com.tangem.common.routing.AppRoute
import com.tangem.core.decompose.factory.ComponentFactory
import com.tangem.core.ui.decompose.ComposableContentComponent
@ -8,5 +9,6 @@ interface DisclaimerComponent : ComposableContentComponent {
data class Params(
val isTosAccepted: Boolean,
val nextRoute: AppRoute? = null,
)
}

View file

@ -48,6 +48,11 @@ internal class DisclaimerModel @Inject constructor(
router.pop()
} else {
cardRepository.acceptTangemTOS()
val nextRoute = params.nextRoute
if (nextRoute != null) {
router.replaceAll(nextRoute)
return@launch
}
val shouldAskPushPermission = notificationsRepository.shouldShowSubscribeOnNotificationsAfterUpdate()
if (shouldAskPushPermission) {
notificationsRepository.setShouldShowNotifications(