Skip to content

Commit 2feef38

Browse files
committed
fix: format the metrics
1 parent c5a7e37 commit 2feef38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/sections/homepage/_partials/testimonials/CommunityStats.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ const stats: Statistic[] = [
3333
];
3434
export default function CommunityStats() {
3535
const { t } = useTranslation();
36+
const digitFormatter = new Intl.NumberFormat();
3637

3738
return (
3839
<div className="p-7 bg-primary rounded-3.5xl mx-auto text-white relative md:absolute md:top-28 lg:top-32 xl:w-1/3 md:w-4/6 z-10 sm:max-w-sm">
3940
<h3 className="m-0 text-4.5xl w-3/4">{t("testimonials.community.title")}</h3>
4041
<div className="relative divide-y divide-white divide-dotted">
4142
{stats.map((stat) => (
4243
<div key={stat.title} className="py-6">
43-
<span className="block text-.5xl mb-2">{stat.count}</span>
44+
<span className="block text-.5xl mb-2">{digitFormatter.format(stat.count)}</span>
4445
<p className="text-base w-3/4 m-0">
4546
<span className="font-graphik font-medium">{t(stat.title)}</span> {t(stat.description)}
4647
</p>

0 commit comments

Comments
 (0)