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

Show fiat amounts inline on token transfers #8786

Merged
merged 1 commit into from
Jun 12, 2020

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jun 11, 2020

Fiat amounts are now shown inline on token transfers in the transaction list, where possible (i.e. where the conversion rates are known).

The logic for this hook is pretty tangled because it's used for so many fundamentally different types of items (eth transactions, token transactions, signature requests). In the future we should split these into different components.

The documentation for the useTokenFiatAmount hook was updated to make tokenAmount optional, but in practice it already worked as expected without the amount being passed in.

@Gudahtt
Copy link
Member Author

Gudahtt commented Jun 11, 2020

Screenshot:

inline-fiat

Fiat amounts are now shown inline on token transfers in the transaction
list, where possible (i.e. where the conversion rates are known).

The logic for this hook is pretty tangled because it's used for so many
fundamentally different types of items (eth transactions, token
transactions, signature requests). In the future we should split these
into different components.

The documentation for the `useTokenFiatAmount` hook was updated to make
`tokenAmount` optional, but in practice it already worked as expected
without the amount being passed in.
@Gudahtt Gudahtt force-pushed the show-token-transfer-fiat-amounts branch from 18577d7 to 373fc9d Compare June 11, 2020 20:57
@Gudahtt Gudahtt marked this pull request as ready for review June 11, 2020 21:29
@Gudahtt Gudahtt requested a review from a team as a code owner June 11, 2020 21:29
@metamaskbot
Copy link
Collaborator

Builds ready [373fc9d]
Page Load Metrics (687 ± 50 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint3310445178
domContentLoaded41595668510450
load41795868710550
domInteractive41595568510450

Copy link
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

LGTM

@Gudahtt Gudahtt merged commit 3c98be4 into develop Jun 12, 2020
@Gudahtt Gudahtt deleted the show-token-transfer-fiat-amounts branch June 12, 2020 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants