From 6f2705f736df677336e90868360b4ed1d44e629c Mon Sep 17 00:00:00 2001 From: Nicholas Orlowsky Date: Mon, 5 Dec 2022 00:35:54 +0000 Subject: [PATCH] manually create incidents for now --- src/components/StatusPage.tsx | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/components/StatusPage.tsx b/src/components/StatusPage.tsx index 267ab3c..9cc8641 100644 --- a/src/components/StatusPage.tsx +++ b/src/components/StatusPage.tsx @@ -11,7 +11,7 @@ import "../App.css"; export default function StatusPage() { const [uptime, setUptime] = useState({datacenters: [], services: [], lastUpdated: ""}); - const [incidents, setIncidents] = useState([]); + //const [incidents, setIncidents] = useState([]); const fetchUptime = async () => { let resp: UptimeResponse = await getUptime(); @@ -19,8 +19,8 @@ export default function StatusPage() { } const fetchIncidents = async () => { - let resp: Incident[] = await getIncidents(); - setIncidents(resp); + //let resp: Incident[] = await getIncidents(); + //setIncidents(resp); } useEffect(() => { @@ -77,16 +77,14 @@ export default function StatusPage() {

Service Alerts

- {incidents !== null && incidents.map((e) => { - return ( - - ); - })} - {(incidents !== null && incidents.length == 0) && -
-
No service alerts.
-
- } + + +
);