mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
clean up ts
This commit is contained in:
@@ -69,7 +69,7 @@ class ValueForm extends React.Component<ValueFormProps> {
|
||||
{devicevalue.u !== DeviceValueUOM.BOOLEAN &&
|
||||
devicevalue.u !== DeviceValueUOM.LIST && (
|
||||
<OutlinedInput
|
||||
id="outlined-adornment-value"
|
||||
id="value"
|
||||
value={devicevalue.v}
|
||||
autoFocus
|
||||
fullWidth
|
||||
@@ -79,15 +79,11 @@ class ValueForm extends React.Component<ValueFormProps> {
|
||||
{DeviceValueUOM_s[devicevalue.u]}
|
||||
</InputAdornment>
|
||||
}
|
||||
aria-describedby="outlined-value-helper-text"
|
||||
inputProps={{
|
||||
'aria-label': 'value'
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{devicevalue.u === DeviceValueUOM.BOOLEAN && (
|
||||
<TextField
|
||||
id="outlined-select-value"
|
||||
id="selected-value"
|
||||
select
|
||||
value={devicevalue.v}
|
||||
autoFocus
|
||||
@@ -99,9 +95,7 @@ class ValueForm extends React.Component<ValueFormProps> {
|
||||
<MenuItem value="false">off</MenuItem>
|
||||
</TextField>
|
||||
)}
|
||||
<FormHelperText id="outlined-value-helper-text">
|
||||
{devicevalue.n}
|
||||
</FormHelperText>
|
||||
<FormHelperText>{devicevalue.n}</FormHelperText>
|
||||
<Box color="warning.main" p={0} pl={0} pr={0} mt={4} mb={0}>
|
||||
<Typography variant="body2">
|
||||
<i>
|
||||
|
||||
Reference in New Issue
Block a user