Updated on 2026-08-14
This commit is contained in:
parent
5b516f2c9b
commit
a82d8cdbba
43 changed files with 829 additions and 89 deletions
|
|
@ -14,6 +14,9 @@ dependencies {
|
|||
implementation(projects.core.decompose)
|
||||
implementation(projects.core.ui)
|
||||
|
||||
/* Common */
|
||||
implementation(projects.common.routing)
|
||||
|
||||
/* Compose */
|
||||
implementation(deps.compose.runtime)
|
||||
}
|
||||
|
|
@ -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,
|
||||
)
|
||||
}
|
||||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue