#582 | Adding chevrons to navigate to "next" and "prev" transactions #1005
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #582
Description
This PR adds two chevron buttons next to the Transaction page title to navigate to the previous and next transactions. This requires support from indexer version 1.2.12 or above.
Draft mode: This PR is still in draft mode because it does not yet check the current indexer version to determine whether indexer support is available in order to show or hide the chevron buttons.
Test scenarios
Note: Currently the is no check if the indexer supports this feature, so for the moment it will show both buttons as desabled because the current indexer version is returning
undefinedvalue for thoseprevTrxHashandNextTrxHashproperties. But when indexer 1.2.12 is deployed, this buttons will serve as navigation between consecutive transactions from the same address.https://deploy-preview-1005--testnet-teloscan.netlify.app/tx/0xd5013a66980eae7c0dddfcf47b75146568d32134f53509d3e3aa4726ff7654b6

https://deploy-preview-1005--testnet-teloscan.netlify.app/tx/0xd89cd5648579932bb1baa8c31abb6cccfb87a8e4aaa885a189e9f188c9d3cddb
