service outages and use nws api

This commit is contained in:
Nicholas Orlowsky 2022-10-22 16:29:26 -05:00
commit 92b527c3a2
No known key found for this signature in database
GPG key ID: 3845F78A73B14100
2 changed files with 2 additions and 5 deletions

View file

@ -2,10 +2,6 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="03fafda4-e2c1-4602-a731-a2f96e84badd" name="Default Changelist" comment=""> <list default="true" id="03fafda4-e2c1-4602-a731-a2f96e84badd" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/src/nws-api/calls.ts" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/nws-api/types.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/App.css" beforeDir="false" afterPath="$PROJECT_DIR$/src/App.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/App.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/App.tsx" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/App.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/App.tsx" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
@ -68,7 +64,7 @@
<workItem from="1643936709048" duration="547000" /> <workItem from="1643936709048" duration="547000" />
<workItem from="1648500425230" duration="246000" /> <workItem from="1648500425230" duration="246000" />
<workItem from="1658028513357" duration="2964000" /> <workItem from="1658028513357" duration="2964000" />
<workItem from="1666469240565" duration="3204000" /> <workItem from="1666469240565" duration="3558000" />
</task> </task>
<servers /> <servers />
</component> </component>

View file

@ -6,6 +6,7 @@ import {Incident, UptimeResponse} from "./nws-api/types";
import {getIncidents, getUptime} from "./nws-api/calls"; import {getIncidents, getUptime} from "./nws-api/calls";
function App() { function App() {
const [uptime, setUptime] = useState<UptimeResponse>({datacenters: [], services:[]}); const [uptime, setUptime] = useState<UptimeResponse>({datacenters: [], services:[]});
const [incidents, setIncidents] = useState<Incident[]>([]); const [incidents, setIncidents] = useState<Incident[]>([]);