Updated on 2026-08-14
This commit is contained in:
parent
f422604467
commit
eef7bac933
7 changed files with 94 additions and 40 deletions
|
|
@ -356,6 +356,7 @@ internal object WalletPreviewData {
|
|||
TxHistoryState.TxHistoryItemState.GroupTitle("Today"),
|
||||
TxHistoryState.TxHistoryItemState.Transaction(
|
||||
TransactionState.Sending(
|
||||
txHash = UUID.randomUUID().toString(),
|
||||
address = "33BddS...ga2B",
|
||||
amount = "-0.500913 BTC",
|
||||
timestamp = "8:41",
|
||||
|
|
@ -364,6 +365,7 @@ internal object WalletPreviewData {
|
|||
TxHistoryState.TxHistoryItemState.GroupTitle("Yesterday"),
|
||||
TxHistoryState.TxHistoryItemState.Transaction(
|
||||
TransactionState.Sending(
|
||||
txHash = UUID.randomUUID().toString(),
|
||||
address = "33BddS...ga2B",
|
||||
amount = "-0.500913 BTC",
|
||||
timestamp = "8:41",
|
||||
|
|
|
|||
|
|
@ -97,11 +97,13 @@ internal class WalletTxHistoryItemFlowConverter(
|
|||
): TransactionState {
|
||||
return when (item.status) {
|
||||
TxHistoryItem.TxStatus.Confirmed -> TransactionState.Receive(
|
||||
txHash = item.txHash,
|
||||
address = direction.from.toBriefAddressFormat(),
|
||||
amount = item.amount.toCryptoCurrencyFormat(blockchain = blockchain),
|
||||
timestamp = item.getRawTimestamp(),
|
||||
)
|
||||
TxHistoryItem.TxStatus.Unconfirmed -> TransactionState.Receiving(
|
||||
txHash = item.txHash,
|
||||
address = direction.from.toBriefAddressFormat(),
|
||||
amount = item.amount.toCryptoCurrencyFormat(blockchain = blockchain),
|
||||
timestamp = item.getRawTimestamp(),
|
||||
|
|
@ -116,11 +118,13 @@ internal class WalletTxHistoryItemFlowConverter(
|
|||
): TransactionState {
|
||||
return when (item.status) {
|
||||
TxHistoryItem.TxStatus.Confirmed -> TransactionState.Send(
|
||||
txHash = item.txHash,
|
||||
address = direction.to.toBriefAddressFormat(),
|
||||
amount = item.amount.toCryptoCurrencyFormat(blockchain = blockchain),
|
||||
timestamp = item.getRawTimestamp(),
|
||||
)
|
||||
TxHistoryItem.TxStatus.Unconfirmed -> TransactionState.Sending(
|
||||
txHash = item.txHash,
|
||||
address = direction.to.toBriefAddressFormat(),
|
||||
amount = item.amount.toCryptoCurrencyFormat(blockchain = blockchain),
|
||||
timestamp = item.getRawTimestamp(),
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ internal class TokenListToContentItemsConverter(
|
|||
override fun convert(value: TokenList): WalletTokensListState {
|
||||
val isEmptyList = when (value) {
|
||||
is TokenList.GroupedByNetwork -> value.groups.isEmpty()
|
||||
is TokenList.NotInitialized -> true
|
||||
is TokenList.NotInitialized -> false
|
||||
is TokenList.Ungrouped -> value.currencies.isEmpty()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue