fix(frontend): click area to get device data

This commit is contained in:
leandrofars 2024-05-03 14:59:14 -03:00
parent a298fe0c3a
commit d36df6c9f3

View File

@ -97,14 +97,14 @@ export const OverviewLatestOrders = (props) => {
</SeverityPill>
</TableCell>
<TableCell>
{ order.Mqtt == 0 && order.Websockets == 0 && order.Stomp == 0 ? <span></span>: <Button>
{ order.Mqtt == 0 && order.Websockets == 0 && order.Stomp == 0 ? <span></span>: <Button
onClick={()=>{
router.push("devices/"+order.SN+"/discovery")
}
}>
<SvgIcon
fontSize="small"
sx={{cursor: order.Status == 2 && 'pointer'}}
onClick={()=>{
router.push("devices/"+order.SN+"/discovery")
}
}
>
<ArrowTopRightOnSquareIcon />
</SvgIcon></Button>}