Move status validation inside the block
This commit is contained in:
1 parent
98737f92af
commit
c97ee22e66
1 file changed
+8
-6
@@ -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>
|
||||||
|
|||||||
Reference in new issue
Block a user