hide certificate expiry box for non-http uptimes
This commit is contained in:
1 parent
d76e3d42a1
commit
3df19fc516
1 file changed
+14
-12
@@ -61,18 +61,20 @@ const UptimeStatusBoxes = ({
|
|||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<StatBox
|
{monitor?.type === "http" && (
|
||||||
heading="certificate expiry"
|
<StatBox
|
||||||
subHeading={
|
heading="certificate expiry"
|
||||||
<Typography
|
subHeading={
|
||||||
component="span"
|
<Typography
|
||||||
fontSize={13}
|
component="span"
|
||||||
color={theme.palette.primary.contrastText}
|
fontSize={13}
|
||||||
>
|
color={theme.palette.primary.contrastText}
|
||||||
{certificateExpiry}
|
>
|
||||||
</Typography>
|
{certificateExpiry}
|
||||||
}
|
</Typography>
|
||||||
/>
|
}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</StatusBoxes>
|
</StatusBoxes>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user