From 184b075ab4d9d879aec1e027efbebc0c5e3ac62d Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Tue, 3 May 2022 21:29:06 -0700 Subject: [PATCH] fix: change className to use rendering --- src/InfoBox.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/InfoBox.js b/src/InfoBox.js index 167501f..b6feacf 100644 --- a/src/InfoBox.js +++ b/src/InfoBox.js @@ -2,9 +2,12 @@ import React from "react"; import "./InfoBox.css"; import { Card, CardContent, Typography } from "@material-ui/core"; -function InfoBox({ title, cases, total, ...props }) { +function InfoBox({ title, cases, active, total, ...props }) { return ( - + {title}