Skip to content

Commit e405d10

Browse files
authored
Merge pull request #186 from jerboa88/184-add-number-formatting-for-stargazer-count-and-fork-count
Fix incorrect function names
2 parents 1e0f150 + 2400845 commit e405d10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/project-card.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { faCodeFork, faGlobe, faStar } from '@fortawesome/free-solid-svg-icons';
88
import { PROJECTS_PATH } from '../config/constants.ts';
99
import { type Project, ProjectType } from '../types/content/projects.ts';
1010
import { assertUnreachable, getClassNameProps } from '../utils/other.ts';
11-
import { toFormattedNumber } from '../utils/strings.ts';
11+
import { toReadableNumber } from '../utils/strings.ts';
1212
import { Card } from './card.tsx';
1313
import { GhostButton } from './input/ghost-button.tsx';
1414
import { LinkWrapper } from './links/link-wrapper.tsx';
@@ -88,7 +88,7 @@ function StargazerCountBadge({ project }: Props) {
8888
<GhostButton
8989
isNotInteractive
9090
icon={faStar}
91-
text={toFormattedNumber(project.stargazerCount)}
91+
text={toReadableNumber(project.stargazerCount)}
9292
className="!p-0"
9393
iconClassName="text-xl"
9494
textClassName="font-bold"
@@ -108,7 +108,7 @@ function ForkCountBadge({ project }: Props) {
108108
<GhostButton
109109
isNotInteractive
110110
icon={faCodeFork}
111-
text={toFormattedNumber(project.forkCount)}
111+
text={toReadableNumber(project.forkCount)}
112112
className={`!p-0 ${SHOW_ON_CARD_HOVER_STYLES}`}
113113
iconClassName="text-xl"
114114
textClassName="font-bold"

0 commit comments

Comments
 (0)