Skip to content

Conversation

@yousefsaad12
Copy link
Contributor

@yousefsaad12 yousefsaad12 commented Oct 15, 2025

Description

This pull request adds a utility to format large numerical values using compact notation (for example, 1,200,000,000 → 1.2B) to improve readability in the Crypto dashboard.

Fixes #39

Changes

  • Added formatCompactNumber() utility using Intl.NumberFormat with notation: "compact"
  • Updated components (Card.jsx, Crypto.jsx) to display formatted numbers
  • Added fallback handling for smaller values

Example

Before After
1200000 1.2M
5400000000 5.4B

Screenshot

Screenshot 2025-10-15 175018

@vercel
Copy link

vercel bot commented Oct 15, 2025

@yousefsaad12 is attempting to deploy a commit to the venisha-kalola's projects Team on Vercel.

A member of the Team first needs to authorize it.

@venisha-kalola
Copy link
Contributor

not able to see the screenshot, can u upload again

@yousefsaad12
Copy link
Contributor Author

not able to see the screenshot, can u upload again

check it

@venisha-kalola venisha-kalola merged commit 690d3e1 into commitra:main Oct 15, 2025
2 of 3 checks passed
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.

Crypto.jsx: Format numbers with utility function

2 participants