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

feat(ui): format/convert number util function improvements #158

Merged
merged 3 commits into from
May 21, 2024

Conversation

drichar
Copy link
Collaborator

@drichar drichar commented May 21, 2024

This consolidates all of the various number formatting functions so they are all based on formatAmount, and accepts its options object.

The formatAmount function itself (renamed from formatNumber) is refactored to use Big.js and accept numbers, bigints, or strings for the amount.

Copy link

vercel bot commented May 21, 2024

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

Name Status Preview Comments Updated (UTC)
reti ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 7:28am

@drichar drichar merged commit 6c177ab into dev May 21, 2024
3 checks passed
@drichar drichar deleted the feat/ui-format-number-improvements branch May 21, 2024 07:31
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.

1 participant