took out the testing button from device actions
This commit is contained in:
parent
0b31f5585d
commit
27228602e7
3 changed files with 5 additions and 10 deletions
|
|
@ -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 />
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue