doc: add conditional rendering to cases
This commit is contained in:
1 parent
6fff8b33a2
commit
787c0f1374
1 file changed
+4
-2
+4
-2
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user