Move status validation inside the block

This commit is contained in:
Sajan
2025-11-12 10:54:55 -06:00
parent 98737f92af
commit c97ee22e66

View File

@@ -34,7 +34,7 @@ const Host = ({ url, title, percentageColor, percentage, showURL, status }) => {
{title}
</Typography>
{percentageColor && percentage && status && (
{percentageColor && percentage && (
<>
<Dot />
<Typography
@@ -46,11 +46,13 @@ const Host = ({ url, title, percentageColor, percentage, showURL, status }) => {
>
{percentage}%
</Typography>
<StatusLabel
status={status}
text={status}
customStyles={{ textTransform: "capitalize" }}
/>
{status && (
<StatusLabel
status={status}
text={status}
customStyles={{ textTransform: "capitalize" }}
/>
)}
</>
)}
</Stack>