From 935ef7d2f76cca7bc1f9840dc357de85f93a1ec2 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Mon, 11 Jul 2022 17:10:23 -0400 Subject: Update for new dashboard frontend --- src/HistoryTable.js | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/HistoryTable.js (limited to 'src/HistoryTable.js') diff --git a/src/HistoryTable.js b/src/HistoryTable.js deleted file mode 100644 index fb27f0e..0000000 --- a/src/HistoryTable.js +++ /dev/null @@ -1,40 +0,0 @@ -import { React } from "react"; -import { DateTime } from "luxon"; -import GoatCounter from "./GoatCounter"; - -const HistoryTable = (props) => { - const data = props.data; - console.log(data); - let table = ( - - - - - - - {data.map((element) => { - return ( - - - - - ); - })} - -
DatePositive Case Rate
- {DateTime.fromSQL(element.date, { zone: "UTC" }) - .setZone(DateTime.local().zoneName) - .toLocaleString({ weekday: "long", month: "long", day: "2-digit" })} - {element.value}%
- ); - - return ( - <> -

{props.name}

- {table} - - - ); -}; - -export default HistoryTable; -- cgit v1.2.3