Updated on 2026-08-14
This commit is contained in:
parent
73a93d88a4
commit
d0243ed9f5
3 changed files with 7 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ import com.tangem.domain.tokens.model.CryptoCurrencyStatus
|
|||
import com.tangem.feature.tokendetails.presentation.tokendetails.state.TokenDetailsBalanceBlockState
|
||||
import com.tangem.feature.tokendetails.presentation.tokendetails.state.TokenDetailsState
|
||||
import com.tangem.feature.tokendetails.presentation.tokendetails.state.components.TokenDetailsNotification
|
||||
import com.tangem.feature.tokendetails.presentation.tokendetails.state.factory.txhistory.TokenDetailsTxHistoryToTransactionStateConverter
|
||||
import com.tangem.feature.tokendetails.presentation.tokendetails.state.factory.txhistory.TokenDetailsPendingTxToTransactionStateConverter
|
||||
import com.tangem.feature.tokendetails.presentation.tokendetails.viewmodels.TokenDetailsClickIntents
|
||||
import com.tangem.utils.converter.Converter
|
||||
import kotlinx.collections.immutable.persistentListOf
|
||||
|
|
@ -29,7 +29,7 @@ internal class TokenDetailsLoadedBalanceConverter(
|
|||
) : Converter<Either<CurrencyStatusError, CryptoCurrencyStatus>, TokenDetailsState> {
|
||||
|
||||
private val txHistoryItemConverter by lazy {
|
||||
TokenDetailsTxHistoryToTransactionStateConverter(symbol, decimals, clickIntents)
|
||||
TokenDetailsPendingTxToTransactionStateConverter(symbol, decimals, clickIntents)
|
||||
}
|
||||
|
||||
override fun convert(value: Either<CurrencyStatusError, CryptoCurrencyStatus>): TokenDetailsState {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,9 @@ import com.tangem.utils.toFormattedCurrencyString
|
|||
import org.joda.time.DateTime
|
||||
import org.joda.time.DateTimeZone
|
||||
|
||||
internal class TokenDetailsTxHistoryToTransactionStateConverter(
|
||||
// FIXME: Refactoring needed
|
||||
/** Same as [TokenDetailsTxHistoryTransactionStateConverter] but with other timestamp format */
|
||||
internal class TokenDetailsPendingTxToTransactionStateConverter(
|
||||
private val symbol: String,
|
||||
private val decimals: Int,
|
||||
private val clickIntents: TokenDetailsClickIntents,
|
||||
|
|
@ -13,6 +13,8 @@ import com.tangem.utils.converter.Converter
|
|||
import com.tangem.utils.toBriefAddressFormat
|
||||
import com.tangem.utils.toFormattedCurrencyString
|
||||
|
||||
// FIXME: Refactoring needed
|
||||
/** Same as [TokenDetailsPendingTxToTransactionStateConverter] but with other timestamp format */
|
||||
internal class TokenDetailsTxHistoryTransactionStateConverter(
|
||||
private val symbol: String,
|
||||
private val decimals: Int,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue