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

Feature/usd amount formatting #457

Merged

Conversation

crypto-engineer
Copy link
Contributor

@crypto-engineer crypto-engineer commented Aug 16, 2022

Capture

All USD values are formatted and displayed according to the user's locale.
Code-wise, getUsdAmount is replaced with displayMonetaryAmountInUSDFormat which is written by composing formatUSD and convertMonetaryAmountToValueInUSD. convertMonetaryAmountToValueInUSD and formatUSD are also used in presentational components.
With these 3 functions, I think we can handle every use case of USD.

@vercel
Copy link

vercel bot commented Aug 16, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
interbtc-ui-interlay ✅ Ready (Inspect) Visit Preview Aug 16, 2022 at 9:33AM (UTC)
interbtc-ui-interlay-testnet ✅ Ready (Inspect) Visit Preview Aug 16, 2022 at 9:33AM (UTC)
interbtc-ui-kintsugi ✅ Ready (Inspect) Visit Preview Aug 16, 2022 at 9:33AM (UTC)
interbtc-ui-kintsugi-testnet ✅ Ready (Inspect) Visit Preview Aug 16, 2022 at 9:33AM (UTC)

@crypto-engineer crypto-engineer self-assigned this Aug 16, 2022
@github-actions
Copy link

Running Lighthouse audit...

1 similar comment
@github-actions
Copy link

Running Lighthouse audit...

Copy link
Collaborator

@tomjeatt tomjeatt left a comment

Choose a reason for hiding this comment

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

Looks good

@crypto-engineer crypto-engineer merged commit 1595680 into interlay:master Aug 16, 2022
@crypto-engineer crypto-engineer deleted the feature/usd-amount-formatting branch August 16, 2022 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants