Add matching header to infrastructure page

This commit is contained in:
Alex Holliday committed 2024-12-10 14:00:24 +08:00
1 parent ad9bda444b
commit 1c655dd35a
1 file changed
+10 -15
+10 -15
View File
@@ -191,31 +191,26 @@ function Infrastructure() {
<SkeletonLayout /> <SkeletonLayout />
) : monitorState.monitors?.length !== 0 ? ( ) : monitorState.monitors?.length !== 0 ? (
<Stack gap={theme.spacing(8)}> <Stack gap={theme.spacing(8)}>
<Box>
<Breadcrumbs list={BREADCRUMBS} /> <Breadcrumbs list={BREADCRUMBS} />
<Stack <Stack
direction="row" direction="row"
sx={{ justifyContent="end"
justifyContent: "end", alignItems="center"
alignItems: "center", mt={theme.spacing(5)}
gap: "1rem",
flexWrap: "wrap",
marginBottom: "2rem",
}}
> >
{/* {isAdmin && (
This will be removed from here, but keeping the commented code to remind me to add a max width to the greeting component
<Box style={{ maxWidth: "65ch" }}>
<Greeting type="uptime" />
</Box> */}
<Button <Button
variant="contained" variant="contained"
color="primary" color="primary"
onClick={navigateToCreate} onClick={() => navigate("/infrastructure/create")}
sx={{ fontWeight: 500 }} sx={{ whiteSpace: "nowrap" }}
> >
Create infrastructure monitor Create new
</Button> </Button>
)}
</Stack> </Stack>
</Box>
<Stack <Stack
sx={{ sx={{
gap: "1rem", gap: "1rem",