Added incidents page in the details header.

This commit is contained in:
Owaise Imdad committed 2025-05-19 23:42:33 +05:30
1 parent 17dcdfcb06
commit f82665006c
1 file changed
+11 -1
@@ -5,7 +5,7 @@ import Button from "@mui/material/Button";
import SettingsOutlinedIcon from "@mui/icons-material/SettingsOutlined"; import SettingsOutlinedIcon from "@mui/icons-material/SettingsOutlined";
import PauseOutlinedIcon from "@mui/icons-material/PauseOutlined"; import PauseOutlinedIcon from "@mui/icons-material/PauseOutlined";
import PlayArrowOutlinedIcon from "@mui/icons-material/PlayArrowOutlined"; import PlayArrowOutlinedIcon from "@mui/icons-material/PlayArrowOutlined";
import EmailIcon from '@mui/icons-material/Email'; import EmailIcon from "@mui/icons-material/Email";
// Utils // Utils
import PropTypes from "prop-types"; import PropTypes from "prop-types";
@@ -69,6 +69,16 @@ const MonitorDetailsControlHeader = ({
> >
{t("sendTestEmail")} {t("sendTestEmail")}
</Button> </Button>
<Button
variant="contained"
color="secondary"
onClick={(e) => {
e.stopPropagation();
navigate(`/incidents/${monitor?._id}`);
}}
>
{t("menu.incidents")}
</Button>
<Button <Button
variant="contained" variant="contained"
color="secondary" color="secondary"