Update pharmacokinetic parameters/calculations, add advanced settings, add disclaimer/citations, many improvements

This commit is contained in:
2026-01-09 19:50:15 +00:00
parent abd8e790b8
commit b396caa67a
14 changed files with 2222 additions and 192 deletions

View File

@@ -140,18 +140,6 @@ const FormNumericInput = React.forwardRef<HTMLInputElement, NumericInputProps>(
setShowWarning(hasWarning)
}
// Ensure value is consistently formatted to the required decimal places
React.useEffect(() => {
const strVal = String(value)
if (strVal === '') return
const num = Number(strVal)
if (isNaN(num)) return
const formatted = num.toFixed(decimalPlaces)
if (strVal !== formatted) {
onChange(formatted)
}
}, [value, decimalPlaces, onChange])
const getAlignmentClass = () => {
switch (align) {
case 'left': return 'text-left'