Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-01 20:34:06 +05:00
parent 772ec7b53a
commit 2f5b70dfaa
54 changed files with 261 additions and 202 deletions

View file

@ -39,7 +39,7 @@ import com.tangem.features.swap.v2.impl.amount.model.converter.SwapAmountReadySt
import com.tangem.features.swap.v2.impl.amount.model.transformers.*
import com.tangem.features.swap.v2.impl.chooseprovider.SwapChooseProviderComponent
import com.tangem.features.swap.v2.impl.choosetoken.fromSupported.SwapChooseTokenNetworkListener
import com.tangem.features.swap.v2.impl.common.entity.NavigationUM
import com.tangem.common.ui.navigationButtons.NavigationUM
import com.tangem.features.swap.v2.impl.common.entity.SwapQuoteUM
import com.tangem.features.swap.v2.impl.common.entity.SwapQuoteUM.Content.DifferencePercent
import com.tangem.utils.coroutines.CoroutineDispatcherProvider

View file

@ -1,6 +1,6 @@
package com.tangem.features.swap.v2.impl.common
import com.tangem.features.swap.v2.impl.common.entity.NavigationUM
import com.tangem.common.ui.navigationButtons.NavigationUM
internal interface SwapNavigationModelCallback {
fun onNavigationResult(navigationUM: NavigationUM)

View file

@ -1,22 +0,0 @@
package com.tangem.features.swap.v2.impl.common.entity
import androidx.annotation.DrawableRes
import androidx.compose.runtime.Immutable
import com.tangem.common.ui.navigationButtons.NavigationButton
import com.tangem.core.ui.extensions.TextReference
@Immutable
internal sealed class NavigationUM {
data class Content(
val title: TextReference,
val subtitle: TextReference?,
@DrawableRes val backIconRes: Int,
val backIconClick: () -> Unit,
@DrawableRes val additionalIconRes: Int? = null,
val additionalIconClick: (() -> Unit)? = null,
val primaryButton: NavigationButton,
val secondaryPairButtonsUM: Pair<NavigationButton, NavigationButton>? = null,
) : NavigationUM()
data object Empty : NavigationUM()
}