Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: TransactionDetail.js to functional component #297

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

tuliomir
Copy link
Contributor

Acceptance Criteria

  • Refactors the TransactionDetail screen to a functional component

Notes

Just like what happened with #296 , despite the logic staying the same, this code was changed a lot. This makes the diff hard to read. The best way to review this screen is to open the before and after to look at the changes.

Security Checklist

  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

@tuliomir tuliomir self-assigned this Aug 22, 2024
setConfirmationData(confirmationDataResponse);
}

// Get transaction metadata from explorer service, overwriting the one already obtained
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This logic of overwriting the meta state was already present, I just made it more obvious by removing the intermediate functions that were doing the double work.

This may be fixed or better structured at a future moment, but the scope of this PR is only to refactor and not to change the logic.

@tuliomir tuliomir force-pushed the refactor/txdetail-functional branch from 1dab0a8 to 23399cb Compare August 23, 2024 01:58
@tuliomir tuliomir marked this pull request as ready for review August 26, 2024 18:19
@tuliomir tuliomir requested a review from r4mmer as a code owner August 26, 2024 18:19
@tuliomir tuliomir merged commit ddcab05 into dev Aug 29, 2024
1 check passed
@tuliomir tuliomir deleted the refactor/txdetail-functional branch August 29, 2024 18:04
@tuliomir tuliomir mentioned this pull request Sep 16, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants