Updated on 2026-08-14
This commit is contained in:
parent
03aa966c1d
commit
80ac1d02c0
26 changed files with 421 additions and 2 deletions
|
|
@ -40,7 +40,8 @@ internal class DefaultWalletRouter(private val navigationStateHolder: Navigation
|
|||
startDestination = WalletScreens.WALLET.name,
|
||||
) {
|
||||
composable(WalletScreens.WALLET.name) {
|
||||
val viewModel = hiltViewModel<WalletViewModel>().apply { router = this@DefaultWalletRouter }
|
||||
val viewModel = hiltViewModel<WalletViewModel>()
|
||||
.apply { router = this@DefaultWalletRouter }
|
||||
WalletScreen(state = viewModel.uiState)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import androidx.compose.runtime.getValue
|
|||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.lifecycle.ViewModel
|
||||
import com.tangem.domain.tokens.GetTokenListUseCase
|
||||
import com.tangem.feature.wallet.presentation.common.WalletPreviewData
|
||||
import com.tangem.feature.wallet.presentation.router.InnerWalletRouter
|
||||
import com.tangem.feature.wallet.presentation.wallet.state.WalletStateHolder
|
||||
|
|
@ -19,7 +20,10 @@ import kotlin.properties.Delegates
|
|||
[REDACTED_AUTHOR]
|
||||
*/
|
||||
@HiltViewModel
|
||||
internal class WalletViewModel @Inject constructor() : ViewModel() {
|
||||
internal class WalletViewModel @Inject constructor(
|
||||
@Suppress("unused") // TODO: [REDACTED_JIRA]
|
||||
private val getTokenListUseCase: GetTokenListUseCase,
|
||||
) : ViewModel() {
|
||||
|
||||
/** Feature router */
|
||||
var router: InnerWalletRouter by Delegates.notNull()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue