doc: add isRed with infoBox--red class
This commit is contained in:
1 parent
aade3fccf0
commit
d248c2d884
1 file changed
+4
-2
+4
-2
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user