- Move create infrastructure folder to infrastructure and remove Infrastructuremonitor folder

- Add create infrastructure page to globle routes and add "infrastructure" to PATH_MAP
- Add navigation/breadcrumb to  create infrastructure page
- Connect create infrastructure page to create monitor button on home page
This commit is contained in:
Shemy Gan committed 2024-11-19 09:57:39 -05:00
1 parent 657a953ad9
commit 8b8a0962db
5 files changed
+12 -5

No files matched your search

+3 -1
View File
@@ -1,5 +1,6 @@
import { Box, Button } from "@mui/material";
import { Heading } from "../../Components/Heading";
import { useNavigate } from "react-router-dom";
/**
* This is the Infrastructure monitoring page. This is a work in progress
@@ -9,13 +10,14 @@ import { Heading } from "../../Components/Heading";
*/
function Infrastructure() {
const navigate = useNavigate();
return (
<Box component="main">
<Button
variant="contained"
color="primary"
onClick={() => {
// navigate("/monitors/create");
navigate("/infrastructure/create");
}}
sx={{ fontWeight: 500 }}
>