From 88afd3f453a2e80547ff9a7dcdf3e0b631918d15 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 17 Nov 2025 12:25:52 +0100 Subject: [PATCH] use ValidatedTextField --- .../src/app/main/SensorsAnalogDialog.tsx | 54 ++++++++----------- 1 file changed, 21 insertions(+), 33 deletions(-) diff --git a/interface/src/app/main/SensorsAnalogDialog.tsx b/interface/src/app/main/SensorsAnalogDialog.tsx index 618c92846..c9d99c42c 100644 --- a/interface/src/app/main/SensorsAnalogDialog.tsx +++ b/interface/src/app/main/SensorsAnalogDialog.tsx @@ -14,7 +14,6 @@ import { Grid, InputAdornment, MenuItem, - TextField, Typography } from '@mui/material'; @@ -193,12 +192,11 @@ const SensorsAnalogDialog = ({ label={LL.NAME(0)} value={editItem.n} fullWidth - variant="outlined" onChange={updateFormValue} /> - {analogTypeMenuItems} - + {(isCounterOrRate || isFreqType) && ( - {uomMenuItems} - + )} {editItem.t === AnalogType.ADC && ( - - - - @@ -302,13 +296,12 @@ const SensorsAnalogDialog = ({ )} {isCounterOrRate && ( - - - {LL.OFF()} {LL.ON()} - + - {LL.ACTIVEHIGH()} {LL.ACTIVELOW()} - + - {LL.ALWAYS()} {LL.ON()} - + )} {isPWM && ( <> - - - {LL.ACTIVEHIGH()} {LL.ACTIVELOW()} - + -