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
+19 -24
+19 -24
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)}>
<Breadcrumbs list={BREADCRUMBS} /> <Box>
<Stack <Breadcrumbs list={BREADCRUMBS} />
direction="row" <Stack
sx={{ direction="row"
justifyContent: "end", justifyContent="end"
alignItems: "center", alignItems="center"
gap: "1rem", mt={theme.spacing(5)}
flexWrap: "wrap",
marginBottom: "2rem",
}}
>
{/*
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
variant="contained"
color="primary"
onClick={navigateToCreate}
sx={{ fontWeight: 500 }}
> >
Create infrastructure monitor {isAdmin && (
</Button> <Button
</Stack> variant="contained"
color="primary"
onClick={() => navigate("/infrastructure/create")}
sx={{ whiteSpace: "nowrap" }}
>
Create new
</Button>
)}
</Stack>
</Box>
<Stack <Stack
sx={{ sx={{
gap: "1rem", gap: "1rem",