import { Link, Outlet, useNavigate } from "react-router-dom"; import styles from "./Root.module.scss"; import { useQuery } from "react-query"; import { MenuItem } from "@blueprintjs/core"; import { getServices } from "./lib/api"; export default function Root() { const navigate = useNavigate(); const servicesQuery = useQuery("service/list", getServices); if (servicesQuery.status !== "success") { console.log("SHIET", servicesQuery); return <>Loading...; } return (

aah

"no honey, we have aws at home" ~mom

Services:

{servicesQuery.data.map((service) => { let icon; if (service.status === "New") { icon = "clean"; } const text = `${service.name} (${service.id})`; const goto = () => navigate(`/service/${service.id}`); return ( ); })}
); }