File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/components/sections/homepage/_partials/testimonials Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,15 @@ const stats: Statistic[] = [
33
33
] ;
34
34
export default function CommunityStats ( ) {
35
35
const { t } = useTranslation ( ) ;
36
+ const digitFormatter = new Intl . NumberFormat ( ) ;
36
37
37
38
return (
38
39
< 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" >
39
40
< h3 className = "m-0 text-4.5xl w-3/4" > { t ( "testimonials.community.title" ) } </ h3 >
40
41
< div className = "relative divide-y divide-white divide-dotted" >
41
42
{ stats . map ( ( stat ) => (
42
43
< 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 >
44
45
< p className = "text-base w-3/4 m-0" >
45
46
< span className = "font-graphik font-medium" > { t ( stat . title ) } </ span > { t ( stat . description ) }
46
47
</ p >
You can’t perform that action at this time.
0 commit comments