using referece to get widths and darg indexes

This commit is contained in:
Carter 2025-06-03 09:48:35 -06:00
parent 6cc29c37c7
commit 4d26cb0f05
2 changed files with 27 additions and 84 deletions

View file

@ -393,8 +393,8 @@ export default function Devices() {
const status = device.status ?? pond.DeviceStatus.create()
const deviceStateHelper = getDeviceStateHelper(status.state);
return (
// <Box className={classes.cellContainer} style={{ width: theme.spacing(0.5)}}>
<Box >
<Box className={classes.cellContainer} style={{ width: theme.spacing(0.5)}}>
{/* <Box > */}
<Tooltip title={deviceStateHelper.description}>{deviceStateHelper.icon}</Tooltip>
</Box>
)
@ -413,8 +413,8 @@ export default function Devices() {
sortKey: "name",
render: (device: Device) => {
return (
// <Box className={classes.cellContainer}>
<Box >
<Box className={classes.cellContainer}>
{/* // <Box > */}
<Chip
variant="outlined"
label={device.settings?.name ? device.settings.name : "Device " + device.settings?.deviceId}