From 7c69c7207d9754130a84619d910feaf66754dd04 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Fri, 13 Nov 2020 21:09:41 -0500 Subject: Add cards for total cases --- src/App.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/App.js') diff --git a/src/App.js b/src/App.js index 0600437..e7137a2 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,5 @@ import useSWR from "swr"; -import logo from "./logo.svg"; +import Card from "./Card"; import "./App.css"; const url = "https://rcpoller.galenguyer.com/api/v0/history"; @@ -22,10 +22,16 @@ function App() { ); + const latest = data[data.length - 1]; + const prior = data[data.length - 2]; + return (

RIT Covid Dashboard

-

Data Loaded

+
+ + +
); } -- cgit v1.2.3