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
+3 -1
+3 -1
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>
{status && (
<StatusLabel <StatusLabel
status={status} status={status}
text={status} text={status}
customStyles={{ textTransform: "capitalize" }} customStyles={{ textTransform: "capitalize" }}
/> />
)}
</> </>
)} )}
</Stack> </Stack>