Skip to content

Commit

Permalink
feat: add comma to thousands in GithubCard
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorusclarence committed Apr 10, 2023
1 parent 6afe483 commit 77451d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/content/card/GithubCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ export default function GithubCard({ repo, className }: GithubCardProps) {
<div className='mt-2 flex gap-3'>
<div className='flex items-center gap-1 text-xs'>
<HiOutlineStar className='shrink-0 text-[1.2em]' />
<span>{repository.stargazers_count}</span>
<span>{repository.stargazers_count.toLocaleString()}</span>
</div>
<div className='flex items-center gap-1 text-xs'>
<BiGitRepoForked className='shrink-0 text-[1.2em]' />
<span>{repository.forks}</span>
<span>{repository.forks.toLocaleString()}</span>
</div>
</div>
</UnstyledLink>
Expand Down

0 comments on commit 77451d4

Please sign in to comment.