From 787c0f137447014e72a0e4cfbd92ef5a3867e666 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Tue, 3 May 2022 21:38:50 -0700 Subject: [PATCH] doc: add conditional rendering to cases --- src/InfoBox.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/InfoBox.js b/src/InfoBox.js index 12d29ec..0546e28 100644 --- a/src/InfoBox.js +++ b/src/InfoBox.js @@ -15,9 +15,11 @@ function InfoBox({ title, cases, active, isRed, total, ...props }) { {title} -

{cases}

+

+ {cases} +

- + {total} Total