took out the testing button from device actions

This commit is contained in:
csawatzky 2025-06-30 13:27:12 -06:00
parent 0b31f5585d
commit 27228602e7
3 changed files with 5 additions and 10 deletions

View file

@ -114,7 +114,6 @@ interface Props {
preferences: pond.DevicePreferences;
isLoading: boolean;
toggleNotificationPreference: Function;
scanFunction: () => void
}
interface DialogState {
@ -147,8 +146,7 @@ export default function DeviceActions(props: Props) {
permissions,
preferences,
isLoading,
toggleNotificationPreference,
scanFunction
toggleNotificationPreference
} = props;
const classes = useStyles();
const [{ user }] = useGlobalState();
@ -520,9 +518,6 @@ export default function DeviceActions(props: Props) {
const buttons = () => {
return (
<React.Fragment>
<IconButton onClick={() => {
scanFunction()
}}>0</IconButton>
{showSupport() && <Tooltip title="Support">
<IconButton onClick={() => navigate("support", { state: {device: device, devicePageData: devicePageData }})}>
<Visibility />

View file

@ -93,6 +93,7 @@ export default function ScannedI2C(props: Props){
return (
<Box sx={{marginY: 1}}>
{sensorNum && <Typography>Sensor {sensorNum}</Typography>}
{types.length > 0 ?
<Grid2 container direction="row" alignItems="center" justifyContent="space-between">
<Grid2 size={3}>
<RadioGroup
@ -145,6 +146,9 @@ export default function ScannedI2C(props: Props){
</Grid2>
</Grid2>
:
<Typography>Sensor Not Supported By Product</Typography>
}
</Box>
)
}