Adding Calculators to the Dashboard. Adding evaluation input to the dashboard which attempts to use mathjs to evaluate the value.

This commit is contained in:
Roland 2025-01-19 11:58:43 -07:00
parent fb187e1305
commit d295f815ea
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
6 changed files with 165 additions and 35 deletions

View file

@ -121,7 +121,7 @@ export function OhmsLawCalculator({setVolts}) {
type: 'number',
labelPosition: 'right',
onSelect: e => e.target.select(), // Select the contents of the Input when a user selects it.
autocomplete: 'off',
autoComplete: 'off',
};
React.useEffect(() => {
@ -279,7 +279,7 @@ const PowerLossCalculator = ({volts, setVolts}) => {
type='number'
value={volts}
onChange={(e, {value}) => setVolts(parseInt(value))}
autocomplete="off"
autoComplete="off"
/>;
const saeToggle = <Toggle
@ -297,7 +297,7 @@ const PowerLossCalculator = ({volts, setVolts}) => {
type='number'
value={length}
onChange={(e, {value}) => setLength(parseInt(value))}
autocomplete="off"
autoComplete="off"
/>
</Grid.Column>
<Grid.Column mobile={4} tablet={2}>