More units UI work

This commit is contained in:
Daniel Dunn
2025-04-03 05:48:01 -06:00
parent 70480d0920
commit 7726adf8a3
5 changed files with 46 additions and 32 deletions

View File

@@ -45,7 +45,7 @@ const voltagedropinwire: GenericCalcType = {
{
name: 'A',
title: 'Wire Area',
unit: 'mm',
unit: 'mm2',
default: 1
},

View File

@@ -252,6 +252,10 @@ export default async function makeTool(
values.outputVariable === variable.name ||
valsBoundToPreset[variable.name] !== undefined
}
disableChangingUnit={
values.outputVariable === variable.name ||
valsBoundToPreset[variable.name] !== undefined
}
onOwnChange={(val) =>
updateVarField(
variable.name,