Updated on 2026-08-14
This commit is contained in:
parent
cae7844408
commit
5037fabe32
14 changed files with 602 additions and 122 deletions
|
|
@ -0,0 +1,33 @@
|
|||
package com.tangem.features.feed.components.market.details.portfolio.add
|
||||
|
||||
import com.tangem.core.decompose.factory.ComponentFactory
|
||||
import com.tangem.core.ui.decompose.ComposableBottomSheetComponent
|
||||
import com.tangem.domain.markets.TokenMarketInfo
|
||||
import com.tangem.domain.models.currency.CryptoCurrency
|
||||
import com.tangem.domain.models.wallet.UserWalletId
|
||||
|
||||
interface AddToPortfolioPreselectedDataComponent : ComposableBottomSheetComponent {
|
||||
|
||||
/**
|
||||
* @param tokenToAdd token and preselected network (no network selector).
|
||||
* @param callback callbacks for add-to-portfolio flow.
|
||||
*/
|
||||
data class Params(
|
||||
val tokenToAdd: TokenToAdd,
|
||||
val callback: Callback,
|
||||
)
|
||||
|
||||
interface Callback {
|
||||
fun onDismiss()
|
||||
fun onSuccess(addedToken: CryptoCurrency, walletId: UserWalletId)
|
||||
}
|
||||
|
||||
data class TokenToAdd(
|
||||
val network: TokenMarketInfo.Network,
|
||||
val id: CryptoCurrency.RawID,
|
||||
val name: String,
|
||||
val symbol: String,
|
||||
)
|
||||
|
||||
interface Factory : ComponentFactory<Params, AddToPortfolioPreselectedDataComponent>
|
||||
}
|
||||
|
|
@ -2,4 +2,5 @@ package com.tangem.features.feed.entry.featuretoggle
|
|||
|
||||
interface FeedFeatureToggle {
|
||||
val isFeedEnabled: Boolean
|
||||
val isEarnBlockEnabled: Boolean
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue