Skip to content

Commit

Permalink
fix(accueil): update display of count by using toLocaleString to make…
Browse files Browse the repository at this point in the history
… easier to read big numbers
  • Loading branch information
Mihoub2 committed Nov 6, 2023
1 parent 482aab1 commit 5b19bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/accueil.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ export default function HomePage() {
<Col key={k} n="4 sm-4 md-4">
<KeyValueCard
cardKey={capitalize(objectMapping[k])}
cardValue={`${counts[k]}`}
cardValue={counts[k].toLocaleString()}
className={`card-${k} card--border-bottom`}
icon={icons[k]}
linkIn={`./rechercher/${objectMappingSearch[k]}?query=&page=1`}
tooltip={metrics[k] !== undefined ? `+ ${metrics[k]} sur les 7 derniers jours` : ''}
tooltip={`+ ${metrics[k] !== undefined ? metrics[k] : ''} sur les 7 derniers jours`}
/>
</Col>
))}
Expand Down

0 comments on commit 5b19bc5

Please sign in to comment.