@@ -261,7 +261,7 @@ function App() {
261261 < div className = "p-5" >
262262 < h3 className = "text-sm font-medium text-muted-foreground mb-1" > Total Requests</ h3 >
263263 < p className = "text-2xl font-bold" >
264- { data . reduce ( ( sum , item ) => sum + item . requestsUsed , 0 ) . toLocaleString ( ) }
264+ { data . reduce ( ( sum , item ) => sum + item . requestsUsed , 0 ) . toLocaleString ( undefined , { maximumFractionDigits : 2 , minimumFractionDigits : 0 } ) }
265265 </ p >
266266 </ div >
267267 </ Card >
@@ -301,9 +301,9 @@ function App() {
301301 { modelSummary . map ( ( item ) => (
302302 < TableRow key = { item . model } >
303303 < TableCell className = "font-medium" > { item . model } </ TableCell >
304- < TableCell className = "text-right" > { item . totalRequests . toLocaleString ( ) } </ TableCell >
305- < TableCell className = "text-right" > { item . compliantRequests . toLocaleString ( ) } </ TableCell >
306- < TableCell className = "text-right" > { item . exceedingRequests . toLocaleString ( ) } </ TableCell >
304+ < TableCell className = "text-right" > { item . totalRequests . toLocaleString ( undefined , { maximumFractionDigits : 2 , minimumFractionDigits : 0 } ) } </ TableCell >
305+ < TableCell className = "text-right" > { item . compliantRequests . toLocaleString ( undefined , { maximumFractionDigits : 2 , minimumFractionDigits : 0 } ) } </ TableCell >
306+ < TableCell className = "text-right" > { item . exceedingRequests . toLocaleString ( undefined , { maximumFractionDigits : 2 , minimumFractionDigits : 0 } ) } </ TableCell >
307307 </ TableRow >
308308 ) ) }
309309 </ TableBody >
@@ -371,14 +371,14 @@ function App() {
371371 < div className = "w-2 h-2 rounded-full bg-[#10b981]" />
372372 < span > Compliant:</ span >
373373 </ div >
374- < div className = "text-right" > { compliant } </ div >
374+ < div className = "text-right" > { Number ( compliant ) . toLocaleString ( undefined , { maximumFractionDigits : 2 , minimumFractionDigits : 0 } ) } </ div >
375375 < div className = "flex items-center gap-1.5" >
376376 < div className = "w-2 h-2 rounded-full bg-[#ef4444]" />
377377 < span > Exceeding:</ span >
378378 </ div >
379- < div className = "text-right" > { exceeding } </ div >
379+ < div className = "text-right" > { Number ( exceeding ) . toLocaleString ( undefined , { maximumFractionDigits : 2 , minimumFractionDigits : 0 } ) } </ div >
380380 < div className = "font-medium" > Total:</ div >
381- < div className = "text-right font-medium" > { total } </ div >
381+ < div className = "text-right font-medium" > { Number ( total ) . toLocaleString ( undefined , { maximumFractionDigits : 2 , minimumFractionDigits : 0 } ) } </ div >
382382 </ div >
383383 </ div >
384384 </ div >
@@ -449,7 +449,7 @@ function App() {
449449 />
450450 < span > { entry . name } :</ span >
451451 </ div >
452- < div className = "font-medium" > { entry . value } </ div >
452+ < div className = "font-medium" > { Number ( entry . value ) . toLocaleString ( undefined , { maximumFractionDigits : 2 , minimumFractionDigits : 0 } ) } </ div >
453453 </ div >
454454 ) ) }
455455 </ div >
0 commit comments