doc: add isRed variable

This commit is contained in:
Leon Xu committed 2022-05-03 21:31:08 -07:00
1 parent 6a36af6865
commit aade3fccf0
1 file changed
+2
+2
View File
@@ -86,6 +86,7 @@ function App() {
<section className="app__stats">
<InfoBox
isRed
active={casesType === "cases"}
onClick={(e) => setCasesType("cases")}
title="Coronavirus Cases"
@@ -100,6 +101,7 @@ function App() {
total={prettyPrintStat(countryInfo.recovered)}
/>
<InfoBox
isRed
active={casesType === "deaths"}
onClick={(e) => setCasesType("deaths")}
title="Deaths"