feat: fix INfrastructure counter

This commit is contained in:
Caio Cabral committed 2025-01-15 19:34:49 -05:00
1 parent ec94458de4
commit bc9d8f0b3c
3 files changed
+13 -8

No files matched your search

@@ -290,7 +290,7 @@ const TeamPanel = () => {
<LoadingButton <LoadingButton
loading={isSendingInvite} loading={isSendingInvite}
variant="text" variant="text"
color="info" color="error"
onClick={closeInviteModal} onClick={closeInviteModal}
> >
Cancel Cancel
+10 -5
View File
@@ -234,14 +234,19 @@ function Infrastructure() {
}} }}
> >
<Heading component="h2">Infrastructure monitors</Heading> <Heading component="h2">Infrastructure monitors</Heading>
{/* TODO Correct the class current-monitors-counter, there are some unnecessary things there */} {/* TODO Same as the one in UptimaDataTable. Create component */}
<Box <Box
component="span" component="span"
className="current-monitors-counter" color={theme.palette.tertiary.contrastText}
color={theme.palette.primary.contrastText} border={2}
border={1} borderColor={theme.palette.accent.main}
borderColor={theme.palette.primary.lowContrast}
backgroundColor={theme.palette.tertiary.main} backgroundColor={theme.palette.tertiary.main}
sx={{
padding: ".25em .75em",
borderRadius: "50%",
fontSize: "12px",
fontWeight: 500,
}}
> >
{summary?.totalMonitors ?? 0} {summary?.totalMonitors ?? 0}
</Box> </Box>
@@ -225,9 +225,9 @@ const UptimeDataTable = ({
gap={theme.spacing(2)} gap={theme.spacing(2)}
> >
<Heading component="h2">Uptime monitors</Heading> <Heading component="h2">Uptime monitors</Heading>
{/* TODO Same as the one in Infrastructure. Create component */}
<Box <Box
className="current-monitors-counter" component="span"
color={theme.palette.tertiary.contrastText} color={theme.palette.tertiary.contrastText}
border={2} border={2}
borderColor={theme.palette.accent.main} borderColor={theme.palette.accent.main}