doc: add Card, CardContent, and Typography from material-ui and return statements

This commit is contained in:
Leon Xu committed 2022-05-02 19:48:56 -07:00
1 parent 765c1d98da
commit 9e8f6c01b2
1 file changed
+23
+23
View File
@@ -0,0 +1,23 @@
import React from "react";
import "./InfoBox.css";
import { Card, CardContent, Typography } from "@material-ui/core";
function InfoBox({ title, cases, total }) {
return (
<Card className="infoBox">
<CardContent>
<Typography className="infoBox__title" color="textSecondary">
{title}
</Typography>
<h2 className="infoBox__cases">{cases}</h2>
<Typography className="infoBox__total" color="textSecondary">
{total} Total
</Typography>
</CardContent>
</Card>
);
}
export default InfoBox;