doc: add conditional rendering to cases

This commit is contained in:
Leon Xu committed 2022-05-03 21:38:50 -07:00
1 parent 6fff8b33a2
commit 787c0f1374
1 file changed
+4 -2
+4 -2
View File
@@ -15,9 +15,11 @@ function InfoBox({ title, cases, active, isRed, total, ...props }) {
{title}
</Typography>
<h2 className="infoBox__cases">{cases}</h2>
<h2 className={`infoBox__cases ${!isRed && "infoBox__cases--green"}`}>
{cases}
</h2>
<Typography className="infoBox__total" color="textSecondary">
<Typography className={``} color="textSecondary">
{total} Total
</Typography>
</CardContent>