File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
frontend/src/pages/welcome Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import Chart from "../../components/chart";
1515import { MapViewHelpText , ViewSummaryModal } from "../../components/utils" ;
1616import { routePath } from "../../components/route" ;
1717import { IDCSubMenu } from "../cases/components" ;
18+ import { thousandFormatter } from "../../components/chart/options/common" ;
1819
1920const perPage = 10 ;
2021const defData = {
@@ -320,8 +321,16 @@ const Welcome = () => {
320321 { totalCases : 0 , totalFarmers : 0 }
321322 ) ;
322323 return [
323- { key : "1" , label : "Total Cases" , value : totals . totalCases } ,
324- { key : "2" , label : "Total Farmers" , value : totals . totalFarmers } ,
324+ {
325+ key : "1" ,
326+ label : "Total Cases" ,
327+ value : thousandFormatter ( totals . totalCases , 0 ) ,
328+ } ,
329+ {
330+ key : "2" ,
331+ label : "Total Farmers" ,
332+ value : thousandFormatter ( totals . totalFarmers , 0 ) ,
333+ } ,
325334 ] ;
326335 } , [ mapData ] ) ;
327336
You can’t perform that action at this time.
0 commit comments