doc: add prettyPrintStats to InfoBox
This commit is contained in:
1 parent
06f258a00b
commit
b5aebb1274
1 file changed
+7
-7
+7
-7
@@ -10,7 +10,7 @@ import InfoBox from "./InfoBox";
|
||||
import Map from "./Map";
|
||||
import Table from "./Table";
|
||||
import LineGraph from "./LineGraph";
|
||||
import { sortData } from "./util";
|
||||
import { prettyPrintStat, sortData } from "./util";
|
||||
import "./App.css";
|
||||
import "leaflet/dist/leaflet.css";
|
||||
|
||||
@@ -87,18 +87,18 @@ function App() {
|
||||
<section className="app__stats">
|
||||
<InfoBox
|
||||
title="Coronavirus Cases"
|
||||
cases={countryInfo.todayCases}
|
||||
total={countryInfo.cases}
|
||||
cases={prettyPrintStat(countryInfo.todayCases)}
|
||||
total={prettyPrintStat(countryInfo.cases)}
|
||||
/>
|
||||
<InfoBox
|
||||
title="Recovered "
|
||||
cases={countryInfo.todayRecovered}
|
||||
total={countryInfo.recovered}
|
||||
cases={prettyPrintStat(countryInfo.todayRecovered)}
|
||||
total={prettyPrintStat(countryInfo.recovered)}
|
||||
/>
|
||||
<InfoBox
|
||||
title="Deaths"
|
||||
cases={countryInfo.todayDeaths}
|
||||
total={countryInfo.deaths}
|
||||
cases={prettyPrintStat(countryInfo.todayDeaths)}
|
||||
total={prettyPrintStat(countryInfo.deaths)}
|
||||
/>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in new issue
Block a user