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> </SeverityPill>
</TableCell> </TableCell>
<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 <SvgIcon
fontSize="small" fontSize="small"
sx={{cursor: order.Status == 2 && 'pointer'}} sx={{cursor: order.Status == 2 && 'pointer'}}
onClick={()=>{
router.push("devices/"+order.SN+"/discovery")
}
}
> >
<ArrowTopRightOnSquareIcon /> <ArrowTopRightOnSquareIcon />
</SvgIcon></Button>} </SvgIcon></Button>}