fix(frontend): feedback when no connected devices were found

This commit is contained in:
leandrofars 2024-06-30 20:00:57 -03:00
parent 641aae883b
commit 6bdc0f549e

View File

@ -52,7 +52,7 @@ export const ConnectedDevices = () => {
return (
<Stack
justifyContent="center"
alignItems={!content &&"center"}
alignItems={(!content || interfaces.length == 0) &&"center"}
>
{content && interfaces.length > 0 ?
<Card>
@ -109,7 +109,9 @@ export const ConnectedDevices = () => {
))
}
</CardContent>
</Card>: <CircularProgress/>}
</Card>: (
content ? <Typography> No connected devices found </Typography> : <CircularProgress/>
)}
</Stack>
)
}