Updated on 2026-08-14
This commit is contained in:
parent
8f639cbc60
commit
c215778788
16 changed files with 230 additions and 88 deletions
|
|
@ -19,6 +19,7 @@ import androidx.navigation.navArgument
|
|||
import com.tangem.core.navigation.AppScreen
|
||||
import com.tangem.core.navigation.NavigationAction
|
||||
import com.tangem.core.navigation.ReduxNavController
|
||||
import com.tangem.core.ui.extensions.networkIconResId
|
||||
import com.tangem.domain.tokens.model.CryptoCurrency
|
||||
import com.tangem.domain.wallets.models.UserWalletId
|
||||
import com.tangem.feature.wallet.presentation.WalletFragment
|
||||
|
|
@ -26,6 +27,7 @@ import com.tangem.feature.wallet.presentation.organizetokens.OrganizeTokensScree
|
|||
import com.tangem.feature.wallet.presentation.organizetokens.OrganizeTokensViewModel
|
||||
import com.tangem.feature.wallet.presentation.wallet.ui.WalletScreen
|
||||
import com.tangem.feature.wallet.presentation.wallet.viewmodels.WalletViewModel
|
||||
import com.tangem.features.tokendetails.navigation.TokenDetailsArguments
|
||||
import com.tangem.features.tokendetails.navigation.TokenDetailsRouter
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
|
|
@ -111,8 +113,21 @@ internal class DefaultWalletRouter(private val reduxNavController: ReduxNavContr
|
|||
reduxNavController.navigate(
|
||||
action = NavigationAction.NavigateTo(
|
||||
screen = AppScreen.WalletDetails,
|
||||
// TODO: [REDACTED_JIRA]
|
||||
bundle = bundleOf(TokenDetailsRouter.SELECTED_CURRENCY_KEY to currency),
|
||||
bundle = bundleOf(
|
||||
TokenDetailsRouter.TOKEN_DETAILS_ARGS to TokenDetailsArguments(
|
||||
currencyId = currency.id,
|
||||
currencyName = currency.name,
|
||||
iconUrl = currency.iconUrl,
|
||||
coinType = when (currency) {
|
||||
is CryptoCurrency.Coin -> TokenDetailsArguments.CoinType.Native
|
||||
is CryptoCurrency.Token -> TokenDetailsArguments.CoinType.Token(
|
||||
standardName = currency.network.standardType.name,
|
||||
networkName = currency.network.name,
|
||||
networkIcon = currency.networkIconResId,
|
||||
)
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue