aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2021-01-31 09:41:28 -0500
committerGalen Guyer <galen@galenguyer.com>2021-01-31 09:43:39 -0500
commitc2819fa47440a87322632ec91b89921e8e017835 (patch)
treee8a345d9e6e77393f42a4021b2fa8149ef90731f
parentb3ed3ca94224d5dbb86e6ccbb15d08aad1a326cf (diff)
Revert removal of new cases and add notice
This reverts commit b3ed3ca94224d5dbb86e6ccbb15d08aad1a326cf.
-rw-r--r--src/MainPage.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/MainPage.js b/src/MainPage.js
index dcca360..eb99df7 100644
--- a/src/MainPage.js
+++ b/src/MainPage.js
@@ -57,8 +57,23 @@ const MainPage = (props) => {
<div id="new">
<h4 className="text-2xl">New Positive Cases From Past 14 Days</h4>
<h5 className="text-base">
- This statistic has been temporarily removed, as RIT removed it from the official dashboard.
+ RIT has removed this statistic from the official dashboard, so at the moment, it is calculated by
+ the API backend. As such, there may be errors, but a quick review looks like it's working right.
</h5>
+ <div className="Section">
+ <Card
+ name="Students"
+ latest={latest.new_students}
+ diff={latest.new_students - prior.new_students}
+ link="/newstudents"
+ />
+ <Card
+ name="Staff"
+ latest={latest.new_staff}
+ diff={latest.new_staff - prior.new_staff}
+ link="/newstaff"
+ />
+ </div>
</div>
<br />
<div id="quarantine">