mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 21:59:58 -05:00
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:
parent
fb187e1305
commit
d295f815ea
6 changed files with 165 additions and 35 deletions
|
|
@ -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}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue