Move status validation inside the block

This commit is contained in:
Sajan committed 2025-11-12 10:54:55 -06:00
1 parent 98737f92af
commit c97ee22e66
1 file changed
+8 -6
+8 -6
View File
@@ -34,7 +34,7 @@ const Host = ({ url, title, percentageColor, percentage, showURL, status }) => {
{title} {title}
</Typography> </Typography>
{percentageColor && percentage && status && ( {percentageColor && percentage && (
<> <>
<Dot /> <Dot />
<Typography <Typography
@@ -46,11 +46,13 @@ const Host = ({ url, title, percentageColor, percentage, showURL, status }) => {
> >
{percentage}% {percentage}%
</Typography> </Typography>
<StatusLabel {status && (
status={status} <StatusLabel
text={status} status={status}
customStyles={{ textTransform: "capitalize" }} text={status}
/> customStyles={{ textTransform: "capitalize" }}
/>
)}
</> </>
)} )}
</Stack> </Stack>