doc: add isRed with infoBox--red class

This commit is contained in:
Leon Xu committed 2022-05-03 21:33:07 -07:00
1 parent aade3fccf0
commit d248c2d884
1 file changed
+4 -2
+4 -2
View File
@@ -2,11 +2,13 @@ import React from "react";
import "./InfoBox.css";
import { Card, CardContent, Typography } from "@material-ui/core";
function InfoBox({ title, cases, active, total, ...props }) {
function InfoBox({ title, cases, active, isRed, total, ...props }) {
return (
<Card
onClick={props.onClick}
className={`infoBox ${active && "infoBox--selected"}`}
className={`infoBox ${active && "infoBox--selected"} ${
isRed && "infoBox--red"
}`}
>
<CardContent>
<Typography className="infoBox__title" color="textSecondary">