-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into fix/stardust/tx-not-found
- Loading branch information
Showing
7 changed files
with
301 additions
and
250 deletions.
There are no files selected for viewing
52 changes: 20 additions & 32 deletions
52
client/src/app/components/stardust/history/TransactionCard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 18 additions & 19 deletions
37
client/src/app/components/stardust/history/TransactionEntryProps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,46 @@ | ||
export interface ITransactionEntryProps { | ||
/** | ||
* The output id. | ||
* The transaction id. | ||
*/ | ||
outputId: string; | ||
transactionId: string; | ||
|
||
/** | ||
* The transaction id. | ||
* The formatted date of the transaction. | ||
*/ | ||
transactionId: string; | ||
dateFormatted: string; | ||
|
||
/** | ||
* The date of the transaction. | ||
* Is the transaction spent. | ||
*/ | ||
date: number; | ||
isSpent: boolean; | ||
|
||
/** | ||
* The milestone index of the transaction. | ||
* Are the amounts formatted. | ||
*/ | ||
milestoneIndex: number; | ||
isFormattedAmounts: boolean; | ||
|
||
/** | ||
* The transaction amount. | ||
* The setter for formatted amounts toggle. | ||
*/ | ||
value: number; | ||
setIsFormattedAmounts: React.Dispatch<React.SetStateAction<boolean>>; | ||
|
||
/** | ||
* Is the transaction spent. | ||
* The formatted transaction amount. | ||
*/ | ||
isSpent: boolean; | ||
balanceChangeFormatted: string; | ||
|
||
/** | ||
* Are the amounts formatted. | ||
* Check if transaction from stardust by TransactionHelper. | ||
*/ | ||
isFormattedAmounts: boolean; | ||
isTransactionFromStardustGenesis: boolean; | ||
|
||
/** | ||
* The setter for formatted amounts toggle. | ||
* check some of outputs timestamps zero | ||
*/ | ||
setIsFormattedAmounts: React.Dispatch<React.SetStateAction<boolean>>; | ||
isGenesisByDate: boolean; | ||
|
||
/** | ||
* To colour the transaction row ligter/darker, alternating on | ||
* unrelated transactions. | ||
* The transaction link. | ||
*/ | ||
darkBackgroundRow?: boolean; | ||
transactionLink: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
138 changes: 53 additions & 85 deletions
138
client/src/app/components/stardust/history/TransactionHistory.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.