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